From: Zac Medico Date: Fri, 1 Oct 2010 04:22:49 +0000 (-0700) Subject: Fix reversed porttrees findname2/findLicensePath. X-Git-Tag: v2.2_rc90~66 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=89b3d2359403a16f45ec353dd55b61c6a82659bc;p=portage.git Fix reversed porttrees findname2/findLicensePath. --- diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index c63053749..317d4a01e 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 self.porttrees: + for x in reversed(self.porttrees): license_path = os.path.join(x, "licenses", license_name) if os.access(license_path, os.R_OK): return license_path @@ -312,7 +312,7 @@ class portdbapi(dbapi): if mytree: mytrees = [mytree] else: - mytrees = self.porttrees + mytrees = reversed(self.porttrees) relative_path = mysplit[0] + _os.sep + psplit[0] + _os.sep + \ mysplit[1] + ".ebuild"