summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-31 12:13:45 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-31 12:13:45 -0700
commitdf2c7a541780e387f9ac38cf6e6b6cf27f0c13fe (patch)
tree9014e836ab934f61b556f78e3163d37a80d34be9
parenta4b28e981839e14b1bca4c916ed7488aa28ff961 (diff)
downloadportage-df2c7a541780e387f9ac38cf6e6b6cf27f0c13fe.tar.gz
portage-df2c7a541780e387f9ac38cf6e6b6cf27f0c13fe.tar.bz2
portage-df2c7a541780e387f9ac38cf6e6b6cf27f0c13fe.zip
Use self.dbapi.getpath() to simplify code in vartree.get_provide().
-rw-r--r--pym/portage/dbapi/vartree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py
index d09524dfe..bec7aa1b4 100644
--- a/pym/portage/dbapi/vartree.py
+++ b/pym/portage/dbapi/vartree.py
@@ -1100,7 +1100,7 @@ class vartree(object):
except SystemExit as e:
raise
except Exception as e:
- mydir = os.path.join(self.dbapi._eroot, VDB_PATH, mycpv)
+ mydir = self.dbapi.getpath(mycpv)
writemsg(_("\nParse Error reading PROVIDE and USE in '%s'\n") % mydir,
noiselevel=-1)
if mylines: