Fix ACCEPT_KEYWORDS validation so that ** is valid. (trunk r7647)
authorZac Medico <zmedico@gentoo.org>
Sun, 19 Aug 2007 16:52:16 +0000 (16:52 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 19 Aug 2007 16:52:16 +0000 (16:52 -0000)
svn path=/main/branches/2.1.2/; revision=7648

pym/portage.py

index 4d4c6c84cdbfb17461275e5dd488be7e5604b066..c571c2ce2999ab858666473b598e1e94784993db 100644 (file)
@@ -1595,7 +1595,9 @@ class config:
                        writemsg("--- 'profiles/arch.list' is empty or not available. Empty portage tree?\n")
                else:
                        for group in groups:
-                               if group not in archlist and group[0] != '-':
+                               if group not in archlist and \
+                                       not (group.startswith("-") and group[1:] in archlist) and \
+                                       group != "**":
                                        writemsg("!!! INVALID ACCEPT_KEYWORDS: %s\n" % str(group),
                                                noiselevel=-1)