Use consistent indentation in output of `emerge -p --columns ${package}`
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>
Sat, 28 Jan 2012 02:20:25 +0000 (03:20 +0100)
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>
Sat, 28 Jan 2012 02:20:25 +0000 (03:20 +0100)
regardless of ROOT.

pym/_emerge/resolver/output.py

index d1c16587f80107e7acc7dae96caf6dabd5615196..ef000d699d2dcb36323759b9d81b23ea55b03387 100644 (file)
@@ -437,7 +437,7 @@ class Display(object):
                                        self.indent, self.pkgprint(pkg.cp, pkg_info))
                        if (self.newlp-nc_len(myprint)) > 0:
                                myprint = myprint+(" "*(self.newlp-nc_len(myprint)))
-                       myprint = myprint+"["+darkblue(ver_str)+"] "
+                       myprint = myprint+" "+darkblue("["+ver_str+"]")+" "
                        if (self.oldlp-nc_len(myprint)) > 0:
                                myprint = myprint+" "*(self.oldlp-nc_len(myprint))
                        myprint = myprint+pkg_info.oldbest
@@ -476,7 +476,7 @@ class Display(object):
                                        self.indent, self.pkgprint(pkg.cp, pkg_info))
                        if (self.newlp-nc_len(myprint)) > 0:
                                myprint = myprint+(" "*(self.newlp-nc_len(myprint)))
-                       myprint = myprint+green(" ["+ver_str+"] ")
+                       myprint = myprint+" "+green("["+ver_str+"]")+" "
                        if (self.oldlp-nc_len(myprint)) > 0:
                                myprint = myprint+(" "*(self.oldlp-nc_len(myprint)))
                        myprint += pkg_info.oldbest