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

pym/portage/__init__.py

index 3bb22ef3481642a4cb3c39a3d463764825d647d4..58cf5e4b12d1f0fb1740f285ab1bcc1e1f765720 100644 (file)
@@ -1576,7 +1576,9 @@ class config(object):
                        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)