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