summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-03-20 20:00:10 +0000
committerZac Medico <zmedico@gentoo.org>2007-03-20 20:00:10 +0000
commit1618014e2895745a877a9f4761039390d6182ad9 (patch)
tree2cca61d653ba318b83cb860978bd3c86db3041a4
parentffbff569ac5769449d4f106b7b6beb37db03c0f6 (diff)
downloadportage-1618014e2895745a877a9f4761039390d6182ad9.tar.gz
portage-1618014e2895745a877a9f4761039390d6182ad9.tar.bz2
portage-1618014e2895745a877a9f4761039390d6182ad9.zip
Appropriately return from _getMissingLicenses() if one of the choices is satisfied.
svn path=/main/trunk/; revision=6253
-rw-r--r--pym/portage/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 660e114e0..833324052 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -1773,6 +1773,8 @@ class config:
if isinstance(element, list):
if element:
ret.append(self._getMissingLicenses(element))
+ if not ret[-1]:
+ return []
else:
if element in acceptable_licenses:
return []