summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 36e726d1e..62af949ad 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -2097,7 +2097,7 @@ class config(object):
acceptable_licenses.clear()
elif x[:1] == '-':
acceptable_licenses.discard(x[1:])
- else:
+ elif x in licenses:
acceptable_licenses.add(x)
licenses = acceptable_licenses