From 354ecfe42fcede644cb6676bdfed34a28a540692 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 6 Dec 2006 22:42:20 +0000 Subject: [PATCH] Use FakeVartree for vardb lock/cache during depclean. svn path=/main/trunk/; revision=5191 --- bin/emerge | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/emerge b/bin/emerge index cdc22fabe..a5fdad390 100755 --- a/bin/emerge +++ b/bin/emerge @@ -3894,7 +3894,7 @@ def action_depclean(settings, trees, ldpath_mtimes, xterm_titles = "notitles" not in settings.features portdb = trees[settings["ROOT"]]["porttree"].dbapi - vartree = trees[settings["ROOT"]]["vartree"] + vartree = FakeVartree(trees[settings["ROOT"]]["vartree"]) vardb = vartree.dbapi syslist = getlist(settings, "system") worldlist = getlist(settings, "world") @@ -3995,7 +3995,8 @@ def action_depclean(settings, trees, ldpath_mtimes, cleanlist = [pkg for pkg in vardb.cpv_all() if not fakedb.cpv_exists(pkg)] if len(cleanlist): - unmerge(settings, myopts, vartree, "unmerge", cleanlist, ldpath_mtimes) + unmerge(settings, myopts, trees[settings["ROOT"]]["vartree"], + "unmerge", cleanlist, ldpath_mtimes) print "Packages installed: "+str(len(myvarlist)) print "Packages in world: "+str(len(worldlist)) -- 2.26.2