Fix config._lazy_vars._accept_license() to exclude irrelevant licenses.
authorZac Medico <zmedico@gentoo.org>
Mon, 22 Jun 2009 21:40:34 +0000 (21:40 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 22 Jun 2009 21:40:34 +0000 (21:40 -0000)
svn path=/main/trunk/; revision=13671

pym/portage/__init__.py

index 36e726d1e7e13b7a99bc0a31f25dbb5fa17e1a46..62af949ade39df2f913f7bdc56b46ea915f836b8 100644 (file)
@@ -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