AppDataCheck: use appstream-util instead of appdata-validate

appdata-validate is deprecated since
2a2436de04
This commit is contained in:
Yanko Kaneti 2015-01-24 10:36:29 +02:00 committed by Ville Skyttä
parent 56f18b137b
commit a200fe7a0f
2 changed files with 4 additions and 4 deletions

View File

@ -25,9 +25,9 @@ class AppDataCheck(AbstractCheck.AbstractFilesCheck):
root = pkg.dirName()
f = root + filename
try:
st = getstatusoutput(('appdata-validate', f), True)
st = getstatusoutput(('appstream-util', 'validate-relax', f))
except OSError:
# ignore the check if appdata-validate is not installed
# ignore the check if appstream-util is not installed
return
if st[0]:
printError(pkg, 'invalid-appdata-file', filename)
@ -37,7 +37,7 @@ check = AppDataCheck()
addDetails(
'invalid-appdata-file',
'''appdata file is not valid, check with appdata-validate''',
'''appdata file is not valid, check with appstream-util validate-relax''',
)
# Local variables:

View File

@ -9,7 +9,7 @@ You need the following utilities to run rpmlint:
o gzip, bzip2 and xz
o groff and gtbl (optional)
o enchant and its python bindings (optional)
o appdata-validate (optional)
o appstream-util, part of appstream-glib (optional)
and the following programs to install it: