diff options
author | François Andriot <albator78@libertysurf.fr> | 2024-05-09 20:50:37 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2024-05-09 20:50:37 +0200 |
commit | c6d21f1119dd7eb5a1395a8d4640f837223f1ea3 (patch) | |
tree | 214cd960ed83db6ae7931d46e7f883b966150e01 /redhat/build/is_latest_package_installed.sh | |
parent | 2af6f1823f0e7b5fd6bac85f95e0881ff7d41506 (diff) | |
download | tde-packaging-c6d21f1119dd7eb5a1395a8d4640f837223f1ea3.tar.gz tde-packaging-c6d21f1119dd7eb5a1395a8d4640f837223f1ea3.zip |
RPM: initial support for OpenMandriva
Signed-off-by: François Andriot <albator78@libertysurf.fr>
Diffstat (limited to 'redhat/build/is_latest_package_installed.sh')
-rwxr-xr-x | redhat/build/is_latest_package_installed.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/redhat/build/is_latest_package_installed.sh b/redhat/build/is_latest_package_installed.sh index c8b310868..997b1f99d 100755 --- a/redhat/build/is_latest_package_installed.sh +++ b/redhat/build/is_latest_package_installed.sh @@ -6,6 +6,7 @@ TDE_VERSION="${2:-${TDE_VERSION:-14.1.2}}" INSTALLED=$(get_installed_package_version.sh ${PKGNAME} ${TDE_VERSION}) TARBALL=$(get_latest_tarball_version.sh ${PKGNAME} ${TDE_VERSION}) SPEC=$(get_spec_version.sh ${PKGNAME} ${TDE_VERSION}) +DIST="$(rpmdist.sh --dist)" # Package containing "~" (e.g. R14 preversion tarballs): if [ "${TARBALL/\~/}" != "${TARBALL}" ]; then @@ -22,7 +23,7 @@ else fi # Other package (e.g. QT3) - if [ "${INSTALLED}" = "${SPEC}" ] || [ "${INSTALLED}$(rpm -E %dist)" = "${SPEC}" ]; then + if [ "${INSTALLED}" = "${SPEC}" ] || [ "${INSTALLED}${DIST}" = "${SPEC}" ]; then echo "Latest package '${PKGNAME}' version '${INSTALLED}' is already built and installed." exit 0 fi |