From 0d023ac2af69714bf99c9521747c405fe6c1c055 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Sun, 3 Oct 2021 11:23:41 +0200 Subject: RPM: add build scripts for Fedora 35 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: François Andriot --- redhat/build/get_latest_built_package_version.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'redhat/build/get_latest_built_package_version.sh') diff --git a/redhat/build/get_latest_built_package_version.sh b/redhat/build/get_latest_built_package_version.sh index 06a150913..8c96be4ca 100755 --- a/redhat/build/get_latest_built_package_version.sh +++ b/redhat/build/get_latest_built_package_version.sh @@ -13,7 +13,7 @@ pkg_version="$(rpm -qp --qf "%{version}" "${RPM}")" pkg_release="$(rpm -qp --qf "%{release}" "${RPM}")" # Application packages: version does not match TDE version -if [[ "${pkg_release}" =~ ^0_ ]]; then +if [[ "${pkg_release}" =~ ^0_ ]] || [[ "${pkg_release}" =~ _0_ ]]; then # Preversion if [[ "${pkg_release}" =~ ${TDE_VERSION}_ ]] ; then # Likely application package @@ -22,6 +22,7 @@ if [[ "${pkg_release}" =~ ^0_ ]]; then # Likely core package eval VERSION="${pkg_version}${pkg_release/0_/\~}" fi + VERSION="${VERSION/_~/\~}" else # Stable version if [[ "${pkg_release}" =~ ${TDE_VERSION}_ ]] ; then -- cgit v1.2.1