Commit 7d29ee17 authored by Ben Cooksley's avatar Ben Cooksley

The validate-tree option either doesn't do what we expect, or is buggy.

Either way, validate does what we want (subject to using a wildcard) so use that instead
parent 82ca9a1a
......@@ -26,14 +26,14 @@ if sys.platform != "linux" or not buildSpecification['do-appstream-check']:
sys.exit(0)
# Determine the command we need to run
commandToRun = "appstreamcli validate-tree --pedantic {0}"
commandToRun = "appstreamcli validate --pedantic {0}/share/metainfo/*"
commandToRun = commandToRun.format( arguments.usingInstall )
# Now run it!
try:
subprocess.check_call( commandToRun, stdout=sys.stdout, stderr=sys.stderr, shell=True, env=buildEnvironment )
except Exception:
sys.exit(1)
sys.exit(0)
# The project passed appstream validation successfully
sys.exit(0)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment