From: Zac Medico Date: Wed, 6 Dec 2006 22:42:20 +0000 (-0000) Subject: Use FakeVartree for vardb lock/cache during depclean. X-Git-Tag: v2.1.2~389 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=354ecfe42fcede644cb6676bdfed34a28a540692;p=portage.git Use FakeVartree for vardb lock/cache during depclean. svn path=/main/trunk/; revision=5191 --- 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))