projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
801e22f
)
Fix reversed porttrees findname2/findLicensePath.
author
Zac Medico
<zmedico@gentoo.org>
Fri, 1 Oct 2010 04:22:49 +0000
(21:22 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 1 Oct 2010 04:22:49 +0000
(21:22 -0700)
pym/portage/dbapi/porttree.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/porttree.py
b/pym/portage/dbapi/porttree.py
index c63053749f9d2229f2cae87a9d0e7cf3fdfe68a2..317d4a01eaf7430f8be3ff9f90ffe1f22f12b013 100644
(file)
--- 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"