Fix vardb.cpv_all() breakage.
authorZac Medico <zmedico@gentoo.org>
Sat, 10 Feb 2007 21:59:24 +0000 (21:59 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 10 Feb 2007 21:59:24 +0000 (21:59 -0000)
svn path=/main/trunk/; revision=5948

pym/portage/dbapi/vartree.py

index 3e862079e84b34f6aafa0028eaabd40e24ab7d75..ede2d143330866d2ebdad9120b4ec512d627b641 100644 (file)
@@ -254,8 +254,7 @@ class vardbapi(dbapi):
 
        def cpv_all(self, use_cache=1):
                returnme = []
-               basepath = self.getpath("/")
-
+               basepath = os.path.join(self.root, VDB_PATH) + os.path.sep
                for x in self.categories:
                        for y in listdir(basepath + x, EmptyOnError=1):
                                if y.startswith("."):