summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-02-18 19:18:31 +0000
committerZac Medico <zmedico@gentoo.org>2006-02-18 19:18:31 +0000
commit8e70b841bb5320e7e369e0e7d7568d91412f1713 (patch)
tree9481797bf2485c5a665bac89236e334e36d06429
parentd3a25383afc3d97f528800701847ba4edfd38193 (diff)
downloadportage-8e70b841bb5320e7e369e0e7d7568d91412f1713.tar.gz
portage-8e70b841bb5320e7e369e0e7d7568d91412f1713.tar.bz2
portage-8e70b841bb5320e7e369e0e7d7568d91412f1713.zip
Split out a vardbapi.update_ents() method and leave it unused for the moment since it's not currently being used properly anyway (see bug 122089).
svn path=/main/trunk/; revision=2731
-rw-r--r--pym/portage.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 9ead23fdb..cf238850c 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -4362,15 +4362,20 @@ class vardbapi(dbapi):
os.rename(old_eb_path+".ebuild", new_eb_path+".ebuild")
write_atomic(os.path.join(newpath, "CATEGORY"), mynewcat+"\n")
+ fixdbentries([mylist], newpath)
- dbdir = self.root+VDB_PATH
+ def update_ents(self, update_iter):
+ """Run fixdbentries on all installed packages (time consuming). Like
+ fixpackages, this should be run from a helper script and display
+ a progress indicator."""
+ dbdir = os.path.join(self.root, VDB_PATH)
for catdir in listdir(dbdir):
catdir = dbdir+"/"+catdir
if os.path.isdir(catdir):
for pkgdir in listdir(catdir):
pkgdir = catdir+"/"+pkgdir
if os.path.isdir(pkgdir):
- fixdbentries([mylist], pkgdir)
+ fixdbentries(update_iter, pkgdir)
def move_slot_ent(self,mylist):
pkg=mylist[1]