summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py4
1 files changed, 3 insertions, 1 deletions
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)