summaryrefslogtreecommitdiffstats
path: root/redhat/build/get_latest_built_package_version.sh
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/build/get_latest_built_package_version.sh')
-rwxr-xr-xredhat/build/get_latest_built_package_version.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/redhat/build/get_latest_built_package_version.sh b/redhat/build/get_latest_built_package_version.sh
index ecd45b197..869efc93b 100755
--- a/redhat/build/get_latest_built_package_version.sh
+++ b/redhat/build/get_latest_built_package_version.sh
@@ -13,11 +13,11 @@ 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}" =~ ${TDE_VERSION}_ ]] ; then
eval VERSION="${pkg_release/_0_/\~}"
else
# Base package (tdelibs ...)
- eval VERSION="${pkg_version}${pkg_release/0_/\~}"
+ eval VERSION="${pkg_version}_${pkg_release/0_/\~}"
fi
VERSION="${VERSION%.opt}" # Remove '.opt' suffix