diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-08-19 16:48:50 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-08-19 16:48:50 +0000 |
commit | c382c0fc05f130ba222110264887fb0d8d761245 (patch) | |
tree | 5dab2891486cd1dd72a0447854575bf573c71425 | |
parent | fa32b9ed18f3f853485f50a839598a3fb8963a2f (diff) | |
download | portage-c382c0fc05f130ba222110264887fb0d8d761245.tar.gz portage-c382c0fc05f130ba222110264887fb0d8d761245.tar.bz2 portage-c382c0fc05f130ba222110264887fb0d8d761245.zip |
Fix ACCEPT_KEYWORDS validation so that ** is valid.
svn path=/main/trunk/; revision=7647
-rw-r--r-- | pym/portage/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 3bb22ef34..58cf5e4b1 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -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) |