From: Zac Medico Date: Thu, 30 Sep 2010 22:45:07 +0000 (-0700) Subject: Fix findLicensePath() breakage from previous. X-Git-Tag: v2.2_rc90~74 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2c7117be05bd57bfc455d717dbb810e8c6fc8829;p=portage.git Fix findLicensePath() breakage from previous. --- diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index 7cee4cfa1..d98479e29 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -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