Fix ugly 'Candidates' --debug output.
authorZac Medico <zmedico@gentoo.org>
Fri, 9 Oct 2009 23:40:13 +0000 (23:40 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 9 Oct 2009 23:40:13 +0000 (23:40 -0000)
svn path=/main/trunk/; revision=14535

pym/_emerge/depgraph.py

index 82364ad28398a131fedaae9b356512fb0b58172c..4a178a04e306089e5efae6f5031cf99e1a01b702 100644 (file)
@@ -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