|
Lines 149-155
Link Here
|
| 149 |
"ebuild.output":"A simple sourcing of the ebuild produces output; this breaks ebuild policy.", |
149 |
"ebuild.output":"A simple sourcing of the ebuild produces output; this breaks ebuild policy.", |
| 150 |
"ebuild.nesteddie":"Placing 'die' inside ( ) prints an error, but doesn't stop the ebuild.", |
150 |
"ebuild.nesteddie":"Placing 'die' inside ( ) prints an error, but doesn't stop the ebuild.", |
| 151 |
"variable.readonly":"Assigning a readonly variable", |
151 |
"variable.readonly":"Assigning a readonly variable", |
| 152 |
"IUSE.invalid":"This build has a variable in IUSE that is not in the use.desc or use.local.desc file", |
152 |
"LIVEVCS.stable":"This ebuild is a live checkout from a VCS but has stable keywords.", |
|
|
153 |
"IUSE.invalid":"This ebuild has a variable in IUSE that is not in the use.desc or use.local.desc file", |
| 153 |
"LICENSE.invalid":"This ebuild is listing a license that doesnt exist in portages license/ dir.", |
154 |
"LICENSE.invalid":"This ebuild is listing a license that doesnt exist in portages license/ dir.", |
| 154 |
"KEYWORDS.invalid":"This ebuild contains KEYWORDS that are not listed in profiles/arch.list or for which no valid profile was found", |
155 |
"KEYWORDS.invalid":"This ebuild contains KEYWORDS that are not listed in profiles/arch.list or for which no valid profile was found", |
| 155 |
"ebuild.nostable":"There are no ebuilds that are marked as stable for your ARCH", |
156 |
"ebuild.nostable":"There are no ebuilds that are marked as stable for your ARCH", |
|
Lines 1009-1015
Link Here
|
| 1009 |
if not haskeyword: |
1010 |
if not haskeyword: |
| 1010 |
stats["KEYWORDS.stupid"] += 1 |
1011 |
stats["KEYWORDS.stupid"] += 1 |
| 1011 |
fails["KEYWORDS.stupid"].append(x+"/"+y+".ebuild") |
1012 |
fails["KEYWORDS.stupid"].append(x+"/"+y+".ebuild") |
| 1012 |
|
1013 |
|
|
|
1014 |
""" |
| 1015 |
Ebuilds that inherit a "Live" eclasss (darcs,subversion,git,cvs,etc..) should |
| 1016 |
not be allowed to be marked stable |
| 1017 |
""" |
| 1018 |
bad_stable_keywords = [] |
| 1019 |
if set(["darcs","cvs","subversion","git"]).intersection(myaux["INHERITED"].split()): |
| 1020 |
bad_stable_keywords = [keyword for keyword in myaux["KEYWORDS"].split() if not keyword.startswith("~")] |
| 1021 |
if bad_stable_keywords: |
| 1022 |
stats["LIVEVCS.stable"] += 1 |
| 1023 |
fails["LIVEVCS.stable"].append(x+"/"+y+".ebuild with stable keywords:%s " % bad_stable_keywords) |
| 1024 |
del keyword, bad_stable_keywords |
| 1025 |
|
| 1013 |
if "--ignore-arches" in myoptions: |
1026 |
if "--ignore-arches" in myoptions: |
| 1014 |
arches = [[repoman_settings["ARCH"], repoman_settings["ARCH"], |
1027 |
arches = [[repoman_settings["ARCH"], repoman_settings["ARCH"], |
| 1015 |
repoman_settings["ACCEPT_KEYWORDS"].split()]] |
1028 |
repoman_settings["ACCEPT_KEYWORDS"].split()]] |