summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-27 10:42:30 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-27 10:42:30 +0000
commit761a9b7737be6114e4923849623227e65db3f62b (patch)
tree3904941fbb5c439616e5f4771bb1e59187f58c12
parentf4cb23cbddb07a12c5e57c7e8c20669857d03e08 (diff)
downloadportage-761a9b7737be6114e4923849623227e65db3f62b.tar.gz
portage-761a9b7737be6114e4923849623227e65db3f62b.tar.bz2
portage-761a9b7737be6114e4923849623227e65db3f62b.zip
* Define a frozenset of live eclasses for the LIVEVCS.stable check.
* Add "mercurial" to the list of known live eclasses. svn path=/main/trunk/; revision=11210
-rwxr-xr-xbin/repoman13
1 files changed, 10 insertions, 3 deletions
diff --git a/bin/repoman b/bin/repoman
index 16102b37b..35807c658 100755
--- a/bin/repoman
+++ b/bin/repoman
@@ -374,6 +374,14 @@ valid_restrict = frozenset(["binchecks", "bindist",
"fetch", "installsources", "mirror",
"primaryuri", "strip", "test", "userpriv"])
+live_eclasses = frozenset([
+ "cvs",
+ "darcs",
+ "git",
+ "mercurial",
+ "subversion"
+])
+
suspect_rdepend = frozenset([
"app-arch/cabextract",
"app-arch/rpm2targz",
@@ -1222,10 +1230,9 @@ for x in scanlist:
Ebuilds that inherit a "Live" eclass (darcs,subversion,git,cvs,etc..) should
not be allowed to be marked stable
"""
- if set(["darcs","cvs","subversion","git"]).intersection(
- myaux["INHERITED"].split()):
+ if live_eclasses.intersection(pkg.inherited):
bad_stable_keywords = []
- for keyword in myaux["KEYWORDS"].split():
+ for keyword in keywords:
if not keyword.startswith("~") and \
not keyword.startswith("-"):
bad_stable_keywords.append(keyword)