summaryrefslogtreecommitdiffstats
path: root/redhat/build/get_installed_package_version.sh
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2015-11-07 15:32:15 +0100
committerFrançois Andriot <albator78@libertysurf.fr>2015-11-07 15:32:15 +0100
commite187705a4cf93d04d69e4b58351c128432bf8ba8 (patch)
tree863436fe53d6780c1f9303f0061c520f39b4eeab /redhat/build/get_installed_package_version.sh
parent10d8be91c9ba6a6360c6ac9ee818408c42c0663b (diff)
downloadtde-packaging-e187705a4cf93d04d69e4b58351c128432bf8ba8.tar.gz
tde-packaging-e187705a4cf93d04d69e4b58351c128432bf8ba8.zip
RPM Packaging: update for 14.0.2
Diffstat (limited to 'redhat/build/get_installed_package_version.sh')
-rwxr-xr-xredhat/build/get_installed_package_version.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/redhat/build/get_installed_package_version.sh b/redhat/build/get_installed_package_version.sh
index ae2e726c1..4df81b12b 100755
--- a/redhat/build/get_installed_package_version.sh
+++ b/redhat/build/get_installed_package_version.sh
@@ -13,7 +13,7 @@ if [ -z "${VERSION}" ] || [[ "${VERSION}" =~ "not installed" ]]; then
VERSION=$(LC_ALL=C rpm -q --qf "%{version}-%{release}" ${PKGNAME})
fi
-VERSION=${VERSION/-*_/\~}
+VERSION=${VERSION/-0_/\~}
#VERSION=${VERSION%-[0-9]}
VERSION=${VERSION%.opt}
VERSION=${VERSION%.[a-z]*}