From: Zac Medico Date: Sun, 19 Aug 2007 16:52:16 +0000 (-0000) Subject: Fix ACCEPT_KEYWORDS validation so that ** is valid. (trunk r7647) X-Git-Tag: v2.1.3.9~39 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0799b89e89519207255b4035d7cb767db5947592;p=portage.git Fix ACCEPT_KEYWORDS validation so that ** is valid. (trunk r7647) svn path=/main/branches/2.1.2/; revision=7648 --- 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)