Skip to content

Commit

Permalink
build: Use appstreamcli to get the AppData version
Browse files Browse the repository at this point in the history
Instead of appstream-util, as it is in deep maintenance mode.

See: ximion/appstream#503
  • Loading branch information
hadess committed Jun 20, 2023
1 parent 607dab9 commit 6a70cee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions check-news.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ 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 $?
}

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
Expand Down

0 comments on commit 6a70cee

Please sign in to comment.