Fix a broken reference to the DependencyArg class.
authorZac Medico <zmedico@gentoo.org>
Sun, 30 Mar 2008 03:25:27 +0000 (03:25 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 30 Mar 2008 03:25:27 +0000 (03:25 -0000)
svn path=/main/branches/2.1.2/; revision=9612

bin/emerge

index 7c79c922a86481f9d26def1423f742296cfb542b..f477aead890db7c3cc1a74bcc2e8de4ce8f4bccf 100755 (executable)
@@ -1582,18 +1582,10 @@ class depgraph:
                                        if len(parents) > max_parents:
                                                omitted_parents = len(parents) - max_parents
                                                pruned_list = []
-                                               # When generating the pruned list, prefer instances
-                                               # of DependencyArg over instances of Package.
                                                for parent in parents:
-                                                       if isinstance(parent, DependencyArg):
-                                                               pruned_list.append(parent)
-                                                               if len(pruned_list) == max_parents:
-                                                                       break
-                                               for parent in parents:
-                                                       if not isinstance(parent, DependencyArg):
-                                                               pruned_list.append(parent)
-                                                               if len(pruned_list) == max_parents:
-                                                                       break
+                                                       pruned_list.append(parent)
+                                                       if len(pruned_list) == max_parents:
+                                                               break
                                                parents = pruned_list
                                        msg.append(" pulled in by\n")
                                        for parent in parents: