Commit 14e61a9e authored by Matthias Klumpp's avatar Matthias Klumpp

dep11-validate: Allow some new types to not have package associations

parent eef44b95
......@@ -116,7 +116,7 @@ def validate_data(data):
ret = False
continue
if not pkgname:
if cpttype != "web-application":
if cpttype not in ["web-application", "operating-system", "repository"]:
add_issue("[%s]: %s" % (cptid, "Component is missing a 'Package' key."))
ret = False
continue
......@@ -130,7 +130,7 @@ def validate_data(data):
# more tests for the icon key
icon = doc.get('Icon')
if (cpttype == "desktop-application") or (cpttype == "web-application"):
if cpttype in ["desktop-application", "web-application"]:
if not doc.get('Icon'):
add_issue("[%s]: %s" % (cptid, "Components containing an application must have an 'Icon' key."))
ret = False
......
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