From 2f6146577b4c20e54d97d2a2092dd2a20f13781d Mon Sep 17 00:00:00 2001 From: liuheng Date: Wed, 18 Dec 2024 17:28:13 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=20=E5=8D=87=E7=BA=A7=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E7=89=88=E6=9C=AC=E5=BF=85=E9=A1=BB=E5=A4=A7=E4=BA=8E?= =?UTF-8?q?=E6=97=A7=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- opengauss-server.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/opengauss-server.spec b/opengauss-server.spec index a75ed30..207c530 100755 --- a/opengauss-server.spec +++ b/opengauss-server.spec @@ -13,7 +13,7 @@ Name: opengauss Version: 6.0.0 -Release: 21 +Release: 22 Summary: openGauss is an open source relational database management system License: MulanPSL-2.0 and MIT and BSD and zlib and TCL and Apache-2.0 and BSL-1.0 URL: https://gitee.com/opengauss/openGauss-server @@ -309,8 +309,8 @@ if [ $1 -eq 1 ]; then elif [ $1 -eq 2 ]; then echo "Preparing for upgrade" old_version=$(rpm -qi opengauss | grep -i version | awk -F':' '{print $2}' | sed 's/^[ \t]*//;s/[ \t]*$//') - if [ "$(printf '%s\n' "%{version}" "$old_version" | sort -V | head -n1)" == "$old_version" ]; then - echo "Error: New version (${version}) must be greater than the old version ($old_version)." + if [ "$(printf '%s\n' "%{version}" "$old_version" | sort -V | head -n1)" == "%{version}" ]; then + echo "Error: New version (%{version}) must be greater than the old version ($old_version)." exit 1 fi if [[ "${old_version}" == "2.1.0" && %{version} == "6.0.0" ]]; then @@ -466,6 +466,9 @@ fi %changelog +* Sat Dec 14 2024 liuheng - 6.0.0-22 +- Fix bugs: when upgrading, the new version cannot be lower than the old version + * Sat Dec 14 2024 liuheng - 6.0.0-21 - Fix different versions of autoconf and resolve exceptions -- Gitee