From 2b159eac47951b5b1878927ed72f47073169d8b4 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sun, 14 Apr 2024 18:33:02 +0800 Subject: [PATCH] fix debian update-version script info --- packages/debian/update-version.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/debian/update-version.sh b/packages/debian/update-version.sh index ee26977f..58fe87b5 100755 --- a/packages/debian/update-version.sh +++ b/packages/debian/update-version.sh @@ -12,9 +12,11 @@ cd $DEBIAN_DIR pwd oldver=`head changelog -n 1 | sed -r 's/^redpanda-cpp\s\((.*)-(.*)\)\s.*$/\1/g'` count=`head changelog -n 1 | sed -r 's/^redpanda-cpp\s\((.*)-(.*)\)\s.*$/\2/g'` -echo $oldver +echo "Old version: $oldver" + if [ "$oldver" != "$ver" ]; then + echo "Upgrade to $ver" tmpfile=$(mktemp) now=`date -R` echo "redpanda-cpp ($ver-1) unstable; urgency=medium" >> $tmpfile