summaryrefslogtreecommitdiffstats
path: root/redhat/build/get_latest_built_package_version.sh
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:51:12 +0100
commit93f2ed001f56fab62c5ec12b014a4afcd8daafd4 (patch)
treef4b016a6965131e49c579c574a84d458c9505989 /redhat/build/get_latest_built_package_version.sh
parentb4e75ac685505de99ce5f51fad3214985c93c9cb (diff)
downloadtde-packaging-93f2ed001f56fab62c5ec12b014a4afcd8daafd4.tar.gz
tde-packaging-93f2ed001f56fab62c5ec12b014a4afcd8daafd4.zip
RPM: add build scripts for Fedora 35
Signed-off-by: François Andriot <albator78@libertysurf.fr>
Diffstat (limited to 'redhat/build/get_latest_built_package_version.sh')
-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 76330566a..62954bd01 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