Bug #231358 - Fix 'NameError: global name 'p' is not defined' in
authorZac Medico <zmedico@gentoo.org>
Wed, 9 Jul 2008 23:20:32 +0000 (23:20 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 9 Jul 2008 23:20:32 +0000 (23:20 -0000)
getmaskingstatus() that's triggered by a conditional in LICENSE.

svn path=/main/trunk/; revision=11004

pym/portage/__init__.py

index 1feab98f40e7941b991280636196689e12845fc3..306d85b3b275de4084774cca3503eec8cfbb48b9 100644 (file)
@@ -6447,7 +6447,7 @@ def getmaskingstatus(mycpv, settings=None, portdb=None):
                                raise
                        return ["corruption"]
                if "?" in metadata["LICENSE"]:
-                       settings.setcpv(p, mydb=metadata)
+                       settings.setcpv(mycpv, mydb=metadata)
                        metadata["USE"] = settings["PORTAGE_USE"]
                else:
                        metadata["USE"] = ""