summaryrefslogtreecommitdiff
path: root/classes/oelint.oeclass
diff options
context:
space:
mode:
authorHolger Schurig <schurig@mn-solutions.de>2004-09-29 10:15:33 +0000
committerHolger Schurig <schurig@mn-solutions.de>2004-09-29 10:15:33 +0000
commit33587a8612c1d14fba4dd84ba0f6bedbbd6cfa13 (patch)
tree8eedf2fdd61fbeff3a52d6c14f9e88f63022bf46 /classes/oelint.oeclass
parent8dd6328e322ee6690929a3df6b1d10336ce3f8c3 (diff)
more lint changes
BKrev: 415a8b45sj56tRu3DNvk-RtKBIdS5w
Diffstat (limited to 'classes/oelint.oeclass')
-rw-r--r--classes/oelint.oeclass42
1 files changed, 41 insertions, 1 deletions
diff --git a/classes/oelint.oeclass b/classes/oelint.oeclass
index c4f24002e1..d7df1dd641 100644
--- a/classes/oelint.oeclass
+++ b/classes/oelint.oeclass
@@ -18,18 +18,58 @@ python do_lint() {
##############################
+ # Test that HOMEPAGE exists
+ #
+ s = testVar("HOMEPAGE")
+ if s=="unknown":
+ oe.error("HOMEPAGE is not set")
+ elif not s.startswith("http://"):
+ oe.error("HOMEPAGE doesn't start with http://")
+
+
+
+ ##############################
# Test for valid LICENSE
#
+ valid_licenses = {
+ "GPL-2" : "GPLv2",
+ "GPL LGPL FDL" : True,
+ "GPL PSF" : True,
+ "GPL/QPL" : True,
+ "GPL" : True,
+ "GPLv2" : True,
+ "IBM" : True,
+ "LGPL GPL" : True,
+ "LGPL" : True,
+ "MIT" : True,
+ "OSL" : True,
+ "Perl" : True,
+ "Public Domain" : True,
+ "QPL" : "GPL/QPL",
+ }
s = testVar("LICENSE")
if s=="unknown":
oe.error("LICENSE is not set")
+ elif s.startswith("Vendor"):
+ pass
+ else:
+ try:
+ newlic = valid_licenses[s]
+ if newlic == False:
+ oe.note("LICENSE '%s' is not recommended" % s)
+ elif newlic != True:
+ oe.note("LICENSE '%s' is not recommended, better use '%s'" % (s, newsect))
+ except:
+ oe.note("LICENSE '%s' is not recommended" % s)
##############################
# Test for valid MAINTAINER
#
s = testVar("MAINTAINER")
- if s and s.find("@") == -1:
+ if s=="OpenEmbedded Team <oe@handhelds.org>":
+ oe.error("explicit MAINTAINER is missing, using default")
+ elif s and s.find("@") == -1:
oe.error("You forgot to put an e-mail address into MAINTAINER")