In calc_depclean(), load the FakeVartree before using it. This fixes
authorZac Medico <zmedico@gentoo.org>
Fri, 27 Nov 2009 22:38:26 +0000 (22:38 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 27 Nov 2009 22:38:26 +0000 (22:38 -0000)
a regression which causes incomplete graph creation (since r14773).
Thanks to Vlastimil Babka <caster@g.o> for reporting. (trunk r14899)

svn path=/main/branches/2.1.7/; revision=14904

pym/_emerge/actions.py

index a117985c4148112b25626d8472017d124807eaf0..eb777684c3e1a3799f310ab4e8a10bc0397463c6 100644 (file)
@@ -598,7 +598,6 @@ def calc_depclean(settings, trees, ldpath_mtimes,
        myroot = settings["ROOT"]
        root_config = trees[myroot]["root_config"]
        psets = root_config.setconfig.psets
-       vardb = trees[myroot]["vartree"].dbapi
        deselect = myopts.get('--deselect') != 'n'
 
        required_set_stack = ["world"]
@@ -654,6 +653,7 @@ def calc_depclean(settings, trees, ldpath_mtimes,
        writemsg_level("\nCalculating dependencies  ")
        resolver_params = create_depgraph_params(myopts, "remove")
        resolver = depgraph(settings, trees, myopts, resolver_params, spinner)
+       resolver._load_vdb()
        vardb = resolver._frozen_config.trees[myroot]["vartree"].dbapi
 
        if action == "depclean":