Remove redundant loop inside depgraph._show_missed_update_slot_conflicts().
authorZac Medico <zmedico@gentoo.org>
Tue, 28 Jul 2009 23:32:19 +0000 (23:32 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 28 Jul 2009 23:32:19 +0000 (23:32 -0000)
svn path=/main/trunk/; revision=13853

pym/_emerge/depgraph.py

index 527b2f9fa649fca4d0db3415793de386dca463f9..2418ca521f7dfa7884adeea0a56007d1af0ce3ae 100644 (file)
@@ -351,19 +351,19 @@ class depgraph(object):
                                msg.append(str(pkg))
 
                                msg.append(" conflicts with\n")
-                               for parent, atom in parent_atoms:
-                                       msg.append(2*indent)
-                                       if isinstance(parent,
-                                               (PackageArg, AtomArg)):
-                                               # For PackageArg and AtomArg types, it's
-                                               # redundant to display the atom attribute.
-                                               msg.append(str(parent))
-                                       else:
-                                               # Display the specific atom from SetArg or
-                                               # Package types.
-                                               msg.append("%s required by %s" % (atom, parent))
-                                       msg.append("\n")
+                               msg.append(2*indent)
+                               if isinstance(parent,
+                                       (PackageArg, AtomArg)):
+                                       # For PackageArg and AtomArg types, it's
+                                       # redundant to display the atom attribute.
+                                       msg.append(str(parent))
+                               else:
+                                       # Display the specific atom from SetArg or
+                                       # Package types.
+                                       msg.append("%s required by %s" % (atom, parent))
                                msg.append("\n")
+                       msg.append("\n")
+
                sys.stderr.write("".join(msg))
                sys.stderr.flush()