diff options
author | François Andriot <albator78@libertysurf.fr> | 2014-04-04 21:17:27 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2014-04-04 21:17:27 +0200 |
commit | 7b26da834f79b8b6eb2d8e99a1467ffea2791380 (patch) | |
tree | f26773747d20d14d82fe43fd5c245d2f9e803eee /redhat/build/is_latest_package_built.sh | |
parent | 61c9cb24d0d3319c8c800fabf1af8153dcabce2c (diff) | |
download | tde-packaging-7b26da834f79b8b6eb2d8e99a1467ffea2791380.tar.gz tde-packaging-7b26da834f79b8b6eb2d8e99a1467ffea2791380.zip |
RPM Packaging: update build scripts
Diffstat (limited to 'redhat/build/is_latest_package_built.sh')
-rwxr-xr-x | redhat/build/is_latest_package_built.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/redhat/build/is_latest_package_built.sh b/redhat/build/is_latest_package_built.sh index 4cec2702e..1950aa9d3 100755 --- a/redhat/build/is_latest_package_built.sh +++ b/redhat/build/is_latest_package_built.sh @@ -6,11 +6,13 @@ TDE_VERSION="${2:-14.0.0}" BUILT=$(get_latest_built_package_version.sh ${PKGNAME} ${TDE_VERSION}) TARBALL=$(get_latest_tarball_version.sh ${PKGNAME} ${TDE_VERSION}) +# If package version contains a "~": it's a pre-release if [ "${BUILT/\~/}" != "${BUILT}" ]; then if [ "${BUILT#*\~}" = "${TARBALL#*\~}" ]; then echo "Latest package '${PKGNAME}' version '${BUILT}' is already built." exit 0 fi +# Nominal case: no "~" caracter else if [ "${TARBALL%-*}" = "${BUILT%-*}" ]; then echo "Latest package '${PKGNAME}' version '${BUILT}' is already built." |