From 0799b89e89519207255b4035d7cb767db5947592 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 19 Aug 2007 16:52:16 +0000 Subject: [PATCH] Fix ACCEPT_KEYWORDS validation so that ** is valid. (trunk r7647) svn path=/main/branches/2.1.2/; revision=7648 --- pym/portage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.26.2