* Define a frozenset of live eclasses for the LIVEVCS.stable check.
authorZac Medico <zmedico@gentoo.org>
Sun, 27 Jul 2008 10:42:30 +0000 (10:42 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 27 Jul 2008 10:42:30 +0000 (10:42 -0000)
* Add "mercurial" to the list of known live eclasses.

svn path=/main/trunk/; revision=11210

bin/repoman

index 16102b37b3dd751f2c1f6ed2a2dc4d830925c322..35807c658f7745b5d4726a71a7b6af9b3ec64da1 100755 (executable)
@@ -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)