summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-08-19 16:52:16 +0000
committerZac Medico <zmedico@gentoo.org>2007-08-19 16:52:16 +0000
commit0799b89e89519207255b4035d7cb767db5947592 (patch)
treee1904fab703fe51b6d35a6a8ccee8385ed45ac79
parent257d2399cb937f1aa7a9cc853314c16522c82540 (diff)
downloadportage-0799b89e89519207255b4035d7cb767db5947592.tar.gz
portage-0799b89e89519207255b4035d7cb767db5947592.tar.bz2
portage-0799b89e89519207255b4035d7cb767db5947592.zip
Fix ACCEPT_KEYWORDS validation so that ** is valid. (trunk r7647)
svn path=/main/branches/2.1.2/; revision=7648
-rw-r--r--pym/portage.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 4d4c6c84c..c571c2ce2 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -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)