tools/python/pkglint/userland.py
changeset 181 87e11e685b1f
parent 168 5884bc1edfdf
child 186 3adedf0f9f4d
--- a/tools/python/pkglint/userland.py	Wed Apr 13 10:10:46 2011 -0600
+++ b/tools/python/pkglint/userland.py	Wed Apr 13 09:58:06 2011 -0700
@@ -223,7 +223,7 @@
 	def __init__(self, config):
 		super(UserlandManifestChecker, self).__init__(config)
 
-	def license_check(self, manifest, engine, pkglint_id="001"):
+	def component_check(self, manifest, engine, pkglint_id="001"):
 		manifest_paths = []
 		files = False
 		license = False
@@ -236,10 +236,16 @@
 			return
 
 		for action in manifest.gen_actions_by_type("license"):
-			return
+			license = True
+			break
+
+		if license == False:
+			engine.error( _("missing license action"),
+				msgid="%s%s.0" % (self.name, pkglint_id))
 
-		engine.error( _("missing license action"),
-			msgid="%s%s.0" % (self.name, pkglint_id))
+		if 'opensolaris.arc_url' not in manifest:
+			engine.error( _("missing ARC data (opensolaris.arc_url)"),
+				msgid="%s%s.0" % (self.name, pkglint_id))
 
-	license_check.pkglint_dest = _(
-		"license actions are required if you deliver files.")
+	component_check.pkglint_dest = _(
+		"license actions and iARC information are required if you deliver files.")