Fix findLicensePath() breakage from previous.
authorZac Medico <zmedico@gentoo.org>
Thu, 30 Sep 2010 22:45:07 +0000 (15:45 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 30 Sep 2010 22:45:07 +0000 (15:45 -0700)
pym/portage/dbapi/porttree.py

index 7cee4cfa149b7a77195c7555e53eaab0ca68c988..d98479e29e6e37e7700f758d15b0e3fa7565380a 100644 (file)
@@ -226,7 +226,7 @@ class portdbapi(dbapi):
                        x.sync()
 
        def findLicensePath(self, license_name):
-               for x in porttrees:
+               for x in self.porttrees:
                        license_path = os.path.join(x, "licenses", license_name)
                        if os.access(license_path, os.R_OK):
                                return license_path