AppDataCheck: use appstream-util instead of appdata-validate
appdata-validate is deprecated since
2a2436de04
This commit is contained in:
parent
56f18b137b
commit
a200fe7a0f
|
@ -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:
|
||||
|
|
2
INSTALL
2
INSTALL
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue