Skip to content

Commit 6a70cee

Browse files
committed
build: Use appstreamcli to get the AppData version
Instead of appstream-util, as it is in deep maintenance mode. See: ximion/appstream#503
1 parent 607dab9 commit 6a70cee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

check-news.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ check_version()
6565

6666
has_verify_latest_version()
6767
{
68-
appstream-util 2>&1 | grep -q get-latest-version
68+
appstreamcli --help 2>&1 | grep -q get-latest-version
6969
return $?
7070
}
7171

7272
verify_latest_version()
7373
{
7474
VERSION=$1
7575
FILE=$SRC_ROOT/"$2"
76-
LATEST_VERSION=`appstream-util get-latest-version "$FILE" | tr -d '\d'`
76+
LATEST_VERSION=`appstreamcli get-latest-version "$FILE" | tr -d '\d'`
7777
if [ "$LATEST_VERSION" != "$VERSION" ] ; then
7878
echo "Expected latest version $VERSION in $FILE, got $LATEST_VERSION"
7979
exit 1

0 commit comments

Comments
 (0)