diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-07-28 23:32:19 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-07-28 23:32:19 +0000 |
commit | 413116a40273096192dcda27f38ef3e84161a141 (patch) | |
tree | ab4b7015fd1d604ef2f71cc18682a1f96a26b838 | |
parent | f66e8b14afa0ed47733093afae8d187af8e7c19b (diff) | |
download | portage-413116a40273096192dcda27f38ef3e84161a141.tar.gz portage-413116a40273096192dcda27f38ef3e84161a141.tar.bz2 portage-413116a40273096192dcda27f38ef3e84161a141.zip |
Remove redundant loop inside depgraph._show_missed_update_slot_conflicts().
svn path=/main/trunk/; revision=13853
-rw-r--r-- | pym/_emerge/depgraph.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 527b2f9fa..2418ca521 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -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() |