From: Zac Medico Date: Fri, 9 Oct 2009 23:40:13 +0000 (-0000) Subject: Fix ugly 'Candidates' --debug output. X-Git-Tag: v2.2_rc45~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=78878e2935b2a5ebc5a4fe46074cc967e8418da1;p=portage.git Fix ugly 'Candidates' --debug output. svn path=/main/trunk/; revision=14535 --- diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 82364ad28..4a178a04e 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -1182,7 +1182,7 @@ class depgraph(object): return 0 if debug: - print("Candidates:", selected_atoms) + print("Candidates:", [str(x) for x in selected_atoms[pkg]]) root_config = self._frozen_config.roots[dep_root] vardb = root_config.trees["vartree"].dbapi @@ -1209,6 +1209,10 @@ class depgraph(object): # <=portage-2.1.6.x did. for virt_pkg, atoms in selected_atoms.items(): + if debug: + print("Candidates: %s: %s" % \ + (virt_pkg.cpv, [str(x) for x in atoms])) + # Just assume depth + 1 here for now, though it's not entirely # accurate since multilple levels of indirect virtual deps may # have been traversed. The _add_pkg call will reset the depth to