From 6a70ceea275cf4ce34efb47edac43397b88001ea Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 20 Jun 2023 09:47:32 +0200 Subject: [PATCH] build: Use appstreamcli to get the AppData version Instead of appstream-util, as it is in deep maintenance mode. See: https://github.com/ximion/appstream/pull/503 --- check-news.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check-news.sh b/check-news.sh index 24a2ea10b..112c6d40a 100755 --- a/check-news.sh +++ b/check-news.sh @@ -65,7 +65,7 @@ check_version() has_verify_latest_version() { - appstream-util 2>&1 | grep -q get-latest-version + appstreamcli --help 2>&1 | grep -q get-latest-version return $? } @@ -73,7 +73,7 @@ verify_latest_version() { VERSION=$1 FILE=$SRC_ROOT/"$2" - LATEST_VERSION=`appstream-util get-latest-version "$FILE" | tr -d '\d'` + LATEST_VERSION=`appstreamcli get-latest-version "$FILE" | tr -d '\d'` if [ "$LATEST_VERSION" != "$VERSION" ] ; then echo "Expected latest version $VERSION in $FILE, got $LATEST_VERSION" exit 1