Appropriately return from _getMissingLicenses() if one of the choices is satisfied.
authorZac Medico <zmedico@gentoo.org>
Tue, 20 Mar 2007 20:00:10 +0000 (20:00 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 20 Mar 2007 20:00:10 +0000 (20:00 -0000)
svn path=/main/trunk/; revision=6253

pym/portage/__init__.py

index 660e114e0b507fd8989cc55620994eb806991836..83332405234c3361be759d43caf38fcef9ca1974 100644 (file)
@@ -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 []