diff options
author | François Andriot <[email protected]> | 2024-06-13 08:37:13 +0200 |
---|---|---|
committer | François Andriot <[email protected]> | 2024-06-13 08:38:31 +0200 |
commit | ac47c91c6c011631186592695e4251a3bb97dcca (patch) | |
tree | d91e4e98d96b4b2618d9fb3b879c28b67fc63a8f /redhat/build/get_latest_tarball_version.sh | |
parent | 1488354ed514d043f0c15ddbe8b9aa7c0b43f46c (diff) | |
download | tde-packaging-ac47c91c6c011631186592695e4251a3bb97dcca.tar.gz tde-packaging-ac47c91c6c011631186592695e4251a3bb97dcca.zip |
RPM: synchronize redhat directory with r14.1.x branch
Signed-off-by: François Andriot <[email protected]>
Diffstat (limited to 'redhat/build/get_latest_tarball_version.sh')
-rwxr-xr-x | redhat/build/get_latest_tarball_version.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/redhat/build/get_latest_tarball_version.sh b/redhat/build/get_latest_tarball_version.sh index 36090ef86..a2c89cfb8 100755 --- a/redhat/build/get_latest_tarball_version.sh +++ b/redhat/build/get_latest_tarball_version.sh @@ -1,7 +1,7 @@ #!/bin/bash PKGNAME="${1##*/}" -TDE_VERSION="${2:-${TDE_VERSION:-14.1.0}}" +TDE_VERSION="${2:-${TDE_VERSION:-14.1.2}}" [ -z "${PKGNAME}" ] && echo "You must specify a package name !" && exit 1 @@ -12,7 +12,9 @@ TARBALL=$(get_latest_tarball_filename.sh "${PKGNAME}" ${TDE_VERSION}) VERSION=${TARBALL##*/} VERSION=${VERSION#trinity-} VERSION=${VERSION#${PKGNAME}-} +VERSION=${VERSION#${PKGNAME}_} VERSION=${VERSION#*-} VERSION=${VERSION%.tar.gz} VERSION=${VERSION%.tar.bz2} +VERSION=${VERSION%.orig} echo "$VERSION" |