diff options
author | François Andriot <[email protected]> | 2020-01-18 20:25:56 +0100 |
---|---|---|
committer | François Andriot <[email protected]> | 2020-01-18 20:29:31 +0100 |
commit | a01912d54a1bf24aaa20bfbfb33709134d52d6f6 (patch) | |
tree | d8ce8396f2df160f29730d13803af4717a361cdd /redhat/build/get_latest_built_package_version.sh | |
parent | 685d3568bfc83de6ab77e5f817edb1d3514db323 (diff) | |
download | tde-packaging-a01912d54a1bf24aaa20bfbfb33709134d52d6f6.tar.gz tde-packaging-a01912d54a1bf24aaa20bfbfb33709134d52d6f6.zip |
RPM: update build scripts
Diffstat (limited to 'redhat/build/get_latest_built_package_version.sh')
-rwxr-xr-x | redhat/build/get_latest_built_package_version.sh | 4 |
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 |