From: Zac Medico Date: Sun, 19 Aug 2007 16:48:50 +0000 (-0000) Subject: Fix ACCEPT_KEYWORDS validation so that ** is valid. X-Git-Tag: v2.2_pre1~873 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c382c0fc05f130ba222110264887fb0d8d761245;p=portage.git Fix ACCEPT_KEYWORDS validation so that ** is valid. svn path=/main/trunk/; revision=7647 --- 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)