diff options
Diffstat (limited to 'redhat/build/get_latest_built_package_version.sh')
-rwxr-xr-x | redhat/build/get_latest_built_package_version.sh | 3 |
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 |