summaryrefslogtreecommitdiffstats
path: root/redhat/build
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2021-10-03 11:23:41 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2021-11-01 21:47:21 +0100
commit0d023ac2af69714bf99c9521747c405fe6c1c055 (patch)
treed007bd8840871a4ccfb57f5da0446ed4d98970c7 /redhat/build
parenta163ec2d6f0956eb474fd38306596abf75c3ab24 (diff)
downloadtde-packaging-0d023ac2af69714bf99c9521747c405fe6c1c055.tar.gz
tde-packaging-0d023ac2af69714bf99c9521747c405fe6c1c055.zip
RPM: add build scripts for Fedora 35
Signed-off-by: François Andriot <albator78@libertysurf.fr>
Diffstat (limited to 'redhat/build')
-rwxr-xr-xredhat/build/get_latest_built_package_version.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/redhat/build/get_latest_built_package_version.sh b/redhat/build/get_latest_built_package_version.sh
index 06a150913..8c96be4ca 100755
--- a/redhat/build/get_latest_built_package_version.sh
+++ b/redhat/build/get_latest_built_package_version.sh
@@ -13,7 +13,7 @@ pkg_version="$(rpm -qp --qf "%{version}" "${RPM}")"
pkg_release="$(rpm -qp --qf "%{release}" "${RPM}")"
# Application packages: version does not match TDE version
-if [[ "${pkg_release}" =~ ^0_ ]]; then
+if [[ "${pkg_release}" =~ ^0_ ]] || [[ "${pkg_release}" =~ _0_ ]]; then
# Preversion
if [[ "${pkg_release}" =~ ${TDE_VERSION}_ ]] ; then
# Likely application package
@@ -22,6 +22,7 @@ if [[ "${pkg_release}" =~ ^0_ ]]; then
# Likely core package
eval VERSION="${pkg_version}${pkg_release/0_/\~}"
fi
+ VERSION="${VERSION/_~/\~}"
else
# Stable version
if [[ "${pkg_release}" =~ ${TDE_VERSION}_ ]] ; then