summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage/dbapi/porttree.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py
index 126d3606c..c94a2965d 100644
--- a/pym/portage/dbapi/porttree.py
+++ b/pym/portage/dbapi/porttree.py
@@ -279,11 +279,14 @@ class portdbapi(dbapi):
else:
mytrees = self.porttrees[:]
mytrees.reverse()
+
+ relative_path = os.path.join(mysplit[0], psplit[0],
+ mysplit[1] + ".ebuild")
+
if 'parse-eapi-glep-55' in self.doebuild_settings.features:
glep55_startswith = '%s.ebuild-' % mysplit[1]
for x in mytrees:
- filename = os.path.join(x, mysplit[0], psplit[0],
- mysplit[1] + ".ebuild")
+ filename = x + os.sep + relative_path
if os.access(filename, os.R_OK):
return (filename, x)
@@ -297,7 +300,7 @@ class portdbapi(dbapi):
return (os.path.join(pkgdir, y), x)
else:
for x in mytrees:
- file=x+"/"+mysplit[0]+"/"+psplit[0]+"/"+mysplit[1]+".ebuild"
+ file = x + os.sep + relative_path
if os.access(file, os.R_OK):
return[file, x]
return None, 0