tighten up output in pretend mode
authorMike Frysinger <vapier@gentoo.org>
Sun, 23 Apr 2006 07:56:29 +0000 (07:56 -0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 23 Apr 2006 07:56:29 +0000 (07:56 -0000)
svn path=/main/trunk/; revision=3197

bin/emerge

index 3238ea6f55cc9a0dec36c96a1581717be4bc5bb9..bc91fcf1b5e30fa151796f6270b01283cfd59b65 100755 (executable)
@@ -1701,12 +1701,14 @@ class depgraph:
                                        myoldbest=blue("["+myoldbest+"]")
 
                                if x[1]!="/":
+                                       if myoldbest:
+                                               myoldbest +=" "
                                        if "--columns" in myopts:
                                                if "--quiet" in myopts:
                                                        myprint=addl+" "+indent+darkgreen(xs[0])
-                                                       myprint=myprint+darkblue(xs[1]+xs[2])+" "
+                                                       myprint=myprint+darkblue(" "+xs[1]+xs[2])+" "
                                                        myprint=myprint+myoldbest
-                                                       myprint=myprint+darkgreen(" to "+x[1])
+                                                       myprint=myprint+darkgreen("to "+x[1])
                                                else:
                                                        myprint="["+x[0]+" "+addl+"] "+indent+darkgreen(xs[0])
                                                        if (newlp-nc_len(myprint)) > 0:
@@ -1715,9 +1717,9 @@ class depgraph:
                                                        if (oldlp-nc_len(myprint)) > 0:
                                                                myprint=myprint+" "*(oldlp-nc_len(myprint))
                                                        myprint=myprint+myoldbest
-                                                       myprint=myprint+darkgreen("  to "+x[1])+" "+verboseadd
+                                                       myprint=myprint+darkgreen("to "+x[1])+" "+verboseadd
                                        else:
-                                               myprint="["+x[0]+" "+addl+"] "+darkgreen(x[2])+" "+myoldbest+" "+darkgreen("to "+x[1])+" "+verboseadd
+                                               myprint="["+x[0]+" "+addl+"] "+darkgreen(x[2])+" "+myoldbest+darkgreen("to "+x[1])+" "+verboseadd
                                else:
                                        if "--columns" in myopts:
                                                if "--quiet" in myopts: