diff options
author | Alec Warner <antarus@gentoo.org> | 2006-06-04 19:48:39 +0000 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2006-06-04 19:48:39 +0000 |
commit | e5ca1f041d8c57cce53fe523795fba300c112279 (patch) | |
tree | 02b22ccff0d2a65a20ff465369497c797a3534fd | |
parent | 0c2a41854f75112aeb6fe88c4904094188383602 (diff) | |
download | portage-e5ca1f041d8c57cce53fe523795fba300c112279.tar.gz portage-e5ca1f041d8c57cce53fe523795fba300c112279.tar.bz2 portage-e5ca1f041d8c57cce53fe523795fba300c112279.zip |
Add live VCS check to repoman, fix misspelling
svn path=/main/trunk/; revision=3457
-rwxr-xr-x | bin/repoman | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/bin/repoman b/bin/repoman index 5be86fdb6..83f4b96cb 100755 --- a/bin/repoman +++ b/bin/repoman @@ -149,7 +149,8 @@ qahelp={ "ebuild.output":"A simple sourcing of the ebuild produces output; this breaks ebuild policy.", "ebuild.nesteddie":"Placing 'die' inside ( ) prints an error, but doesn't stop the ebuild.", "variable.readonly":"Assigning a readonly variable", - "IUSE.invalid":"This build has a variable in IUSE that is not in the use.desc or use.local.desc file", + "LIVEVCS.stable":"This ebuild is a live checkout from a VCS but has stable keywords.", + "IUSE.invalid":"This ebuild has a variable in IUSE that is not in the use.desc or use.local.desc file", "LICENSE.invalid":"This ebuild is listing a license that doesnt exist in portages license/ dir.", "KEYWORDS.invalid":"This ebuild contains KEYWORDS that are not listed in profiles/arch.list or for which no valid profile was found", "ebuild.nostable":"There are no ebuilds that are marked as stable for your ARCH", @@ -1010,7 +1011,18 @@ for x in scanlist: if not haskeyword: stats["KEYWORDS.stupid"] += 1 fails["KEYWORDS.stupid"].append(x+"/"+y+".ebuild") - + + """ + Ebuilds that inherit a "Live" eclasss (darcs,subversion,git,cvs,etc..) should + not be allowed to be marked stable + """ + if set(["darcs","cvs","subversion","git"]).intersection(myaux["INHERITED"].split()): + bad_stable_keywords = [keyword for keyword in myaux["KEYWORDS"].split() if not keyword.startswith("~")] + if bad_stable_keywords: + stats["LIVEVCS.stable"] += 1 + fails["LIVEVCS.stable"].append(x+"/"+y+".ebuild with stable keywords:%s " % bad_stable_keywords) + del keyword, bad_stable_keywords + if "--ignore-arches" in myoptions: arches = [[repoman_settings["ARCH"], repoman_settings["ARCH"], repoman_settings["ACCEPT_KEYWORDS"].split()]] |