From: Zac Medico Date: Fri, 27 Nov 2009 02:30:52 +0000 (-0000) Subject: In calc_depclean(), load the FakeVartree before using it. This fixes X-Git-Tag: v2.2_rc53~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=55621d3fa339d3bd3c3c60747f2099cbe0815104;p=portage.git In calc_depclean(), load the FakeVartree before using it. This fixes a regression which causes incomplete graph creation (since r14773). Thanks to Vlastimil Babka for reporting. svn path=/main/trunk/; revision=14899 --- diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index b8ea72010..d14b6c3a1 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -595,7 +595,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"] @@ -647,6 +646,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":