Use self.dbapi.getpath() to simplify code in vartree.get_provide().
authorZac Medico <zmedico@gentoo.org>
Tue, 31 Aug 2010 19:13:45 +0000 (12:13 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 31 Aug 2010 19:13:45 +0000 (12:13 -0700)
pym/portage/dbapi/vartree.py

index d09524dfe802fedafe3ad17baa9dcde069104345..bec7aa1b4f7b74bb8c4bd36df79dcb904addbb7a 100644 (file)
@@ -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: