Display blockers at the end of the list so that it will more often be easy for the...
authorZac Medico <zmedico@gentoo.org>
Sun, 4 Mar 2007 04:25:18 +0000 (04:25 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 4 Mar 2007 04:25:18 +0000 (04:25 -0000)
svn path=/main/branches/2.1.2/; revision=6170

bin/emerge

index 2f5e68aef84f57a0d5b0138c4beabf25e8a11c9f..d5b870dd36d25a728b12eb1c50580894cba48dae 100755 (executable)
@@ -2252,6 +2252,7 @@ class depgraph:
                                "--verbose" in self.myopts and 3 or 2)
                changelogs=[]
                p=[]
+               blockers = []
 
                counters = PackageCounters()
 
@@ -2422,17 +2423,18 @@ class depgraph:
                                resolved = portage.key_expand(
                                        pkg_key, mydb=vardb, settings=pkgsettings)
                                if "--columns" in self.myopts and "--quiet" in self.myopts:
-                                       print addl,red(resolved),
+                                       addl = addl + " " + red(resolved)
                                else:
-                                       print "["+x[0]+" "+addl+"]",red(resolved),
+                                       addl = "[blocks " + addl + "] " + red(resolved)
                                block_parents = self.blocker_parents[tuple(x)]
                                block_parents = set([pnode[2] for pnode in block_parents])
                                block_parents = ", ".join(block_parents)
                                if resolved!=x[2]:
-                                       print bad("(\"%s\" is blocking %s)") % \
+                                       addl += bad(" (\"%s\" is blocking %s)") % \
                                                (pkg_key, block_parents)
                                else:
-                                       print bad("(is blocking %s)") % block_parents
+                                       addl += bad(" (is blocking %s)") % block_parents
+                               blockers.append(addl)
                        else:
                                mydbapi = self.trees[myroot][self.pkg_tree_map[pkg_type]].dbapi
                                binary_package = True
@@ -2726,6 +2728,8 @@ class depgraph:
 
                for x in p:
                        print x
+               for x in blockers:
+                       print x
 
                if verbosity == 3:
                        print