summaryrefslogtreecommitdiffstats
path: root/redhat/build/get_installed_package_version.sh
diff options
context:
space:
mode:
authorFrançois Andriot <albator78@libertysurf.fr>2014-10-01 11:51:45 +0200
committerFrançois Andriot <albator78@libertysurf.fr>2014-10-01 11:51:45 +0200
commit4ed48b596a3124deac51b66df656c57f9f88c4d9 (patch)
treeb8aa11c9b7f6e49155454b236915fcaad3ab94a2 /redhat/build/get_installed_package_version.sh
parentf56924252eb70959bff9d829259b13bbef049458 (diff)
downloadtde-packaging-4ed48b596a3124deac51b66df656c57f9f88c4d9.tar.gz
tde-packaging-4ed48b596a3124deac51b66df656c57f9f88c4d9.zip
RPM Packaging: updates
Diffstat (limited to 'redhat/build/get_installed_package_version.sh')
-rwxr-xr-xredhat/build/get_installed_package_version.sh11
1 files changed, 1 insertions, 10 deletions
diff --git a/redhat/build/get_installed_package_version.sh b/redhat/build/get_installed_package_version.sh
index 609c88f0e..5a8e282b8 100755
--- a/redhat/build/get_installed_package_version.sh
+++ b/redhat/build/get_installed_package_version.sh
@@ -6,16 +6,7 @@ PKGNAME="${1##*/}"
[ -z "${PKGNAME}" ] && echo "You must specify a package name !" && exit 1
# Language package: install only French language package
-case ${PKGNAME} in
- "k3b-i18n"|"koffice-i18n"|"tde-i18n") PKGNAME="trinity-${PKGNAME}-French";;
- "koffice") PKGNAME="${PKGNAME}-suite";;
- "trinity-"*) PKGNAME="${PKGNAME#trinity-}";;
- "qt3") [ -r /etc/mandriva-release ] && PKGNAME="qt3-common";;
- "curl") PKGNAME="trinity-libcurl";;
- "esound") PKGNAME="esound-libs";;
- "tqt3") PKGNAME="libtqt3-mt";;
- "tqtinterface") PKGNAME="libtqt4";;
-esac
+PKGNAME="$(get_rpm_package_name.sh ${PKGNAME})"
VERSION=$(LC_ALL=C rpm -q --qf "%{version}-%{release}" trinity-${PKGNAME} 2>/dev/null)
if [ -z "${VERSION}" ] || [[ "${VERSION}" =~ "not installed" ]]; then