From: Zac Medico Date: Tue, 31 Aug 2010 19:13:45 +0000 (-0700) Subject: Use self.dbapi.getpath() to simplify code in vartree.get_provide(). X-Git-Tag: v2.2_rc73~15 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=df2c7a541780e387f9ac38cf6e6b6cf27f0c13fe;p=portage.git Use self.dbapi.getpath() to simplify code in vartree.get_provide(). --- 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: