Fix depclean so the fake vartree is used in dep_check calls.
authorZac Medico <zmedico@gentoo.org>
Wed, 6 Dec 2006 22:56:18 +0000 (22:56 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 6 Dec 2006 22:56:18 +0000 (22:56 -0000)
svn path=/main/trunk/; revision=5193

bin/emerge

index fd0edafd06c0c100f4d5c94160eb1f2b476db4da..cc7922df89da587a9ac31e0d360748ce07feb6a2 100755 (executable)
@@ -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"