diff options
author | François Andriot <[email protected]> | 2019-11-03 10:18:22 +0100 |
---|---|---|
committer | François Andriot <[email protected]> | 2019-11-03 11:16:30 +0100 |
commit | 4c50b73e0b3c5f1f360b58f68b9f83d3866323a5 (patch) | |
tree | ba1c909fffec46dca940b31a21acd438d57f40b1 /redhat/build/is_latest_package_built.sh | |
parent | c3350bda33cd4e47c3d13eb7c9dcea757b2a5ec0 (diff) | |
download | tde-packaging-4c50b73e0b3c5f1f360b58f68b9f83d3866323a5.tar.gz tde-packaging-4c50b73e0b3c5f1f360b58f68b9f83d3866323a5.zip |
RPM: update build scripts
Diffstat (limited to 'redhat/build/is_latest_package_built.sh')
-rwxr-xr-x | redhat/build/is_latest_package_built.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/redhat/build/is_latest_package_built.sh b/redhat/build/is_latest_package_built.sh index 5792905d9..a373ba021 100755 --- a/redhat/build/is_latest_package_built.sh +++ b/redhat/build/is_latest_package_built.sh @@ -1,17 +1,17 @@ #!/bin/bash PKGNAME="${1##*/}" -TDE_VERSION="${2:-${TDE_VERSION:-14.0.5}}" +TDE_VERSION="${2:-${TDE_VERSION:-14.0.7}}" -BUILT=$(get_latest_built_package_version.sh ${PKGNAME} ${TDE_VERSION}) +BUILT="$(get_latest_built_package_version.sh ${PKGNAME} ${TDE_VERSION})" TARBALL="$(get_latest_tarball_version.sh ${PKGNAME} ${TDE_VERSION})" RPM_PKGNAME="$(get_rpm_package_name.sh ${PKGNAME})" [ -z "${TARBALL}" ] && exit 1 # If package version contains a "~": it's a pre-release -if [ "${BUILT/\~/}" != "${BUILT}" ]; then - if [ "${BUILT#*\~}" = "${TARBALL#*\~}" ]; then +if [ "${BUILT/~/}" != "${BUILT}" ]; then + if [ "${BUILT#*_pre}" = "${TARBALL#*~pre}" ]; then echo "Latest development package '${PKGNAME}' version '${BUILT}' is already built." exit 0 fi |