From: Zac Medico Date: Wed, 6 Dec 2006 22:56:18 +0000 (-0000) Subject: Fix depclean so the fake vartree is used in dep_check calls. X-Git-Tag: v2.1.2~387 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e0072bc7f40e85ef3c3708877eb09a60a5555702;p=portage.git Fix depclean so the fake vartree is used in dep_check calls. svn path=/main/trunk/; revision=5193 --- diff --git a/bin/emerge b/bin/emerge index fd0edafd0..cc7922df8 100755 --- a/bin/emerge +++ b/bin/emerge @@ -3894,7 +3894,9 @@ def action_depclean(settings, trees, ldpath_mtimes, xterm_titles = "notitles" not in settings.features portdb = trees[settings["ROOT"]]["porttree"].dbapi - vartree = FakeVartree(trees[settings["ROOT"]]["vartree"]) + real_vartree = trees[settings["ROOT"]]["vartree"] + vartree = FakeVartree(real_vartree) + trees[settings["ROOT"]]["vartree"] = vartree vardb = vartree.dbapi syslist = getlist(settings, "system") worldlist = getlist(settings, "world") @@ -3974,6 +3976,7 @@ def action_depclean(settings, trees, ldpath_mtimes, # Restore the portdb back to normal (see fake_vardb above). trees[settings["ROOT"]]["porttree"].dbapi = portdb + trees[settings["ROOT"]]["vartree"] = real_vartree if "--quiet" not in myopts: print "\b\b... done!\n"