Pass missing acceptable_licenses parameter into recursive _getMissingLicenses() calls.
authorZac Medico <zmedico@gentoo.org>
Tue, 20 Mar 2007 20:06:56 +0000 (20:06 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 20 Mar 2007 20:06:56 +0000 (20:06 -0000)
svn path=/main/trunk/; revision=6255

pym/portage/__init__.py

index 83332405234c3361be759d43caf38fcef9ca1974..485f89e06b8a26b78d0dc81247cebf44c31784d9 100644 (file)
@@ -1772,7 +1772,8 @@ class config:
                        for element in license_struct[1:]:
                                if isinstance(element, list):
                                        if element:
-                                               ret.append(self._getMissingLicenses(element))
+                                               ret.append(self._getMissingLicenses(
+                                                       element, acceptable_licenses))
                                                if not ret[-1]:
                                                        return []
                                else:
@@ -1787,7 +1788,8 @@ class config:
                for element in license_struct:
                        if isinstance(element, list):
                                if element:
-                                       ret.extend(self._getMissingLicenses(element))
+                                       ret.extend(self._getMissingLicenses(element,
+                                               acceptable_licenses))
                        else:
                                if element not in acceptable_licenses:
                                        ret.append(element)