Display: align nomerge nodes more
authorZac Medico <zmedico@gentoo.org>
Mon, 31 Jan 2011 08:43:52 +0000 (00:43 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 31 Jan 2011 08:43:52 +0000 (00:43 -0800)
pym/_emerge/resolver/output.py

index 3346c07829b12db03e144d6688a5df84162a12a6..be07656a47799ebb8b903d82683d38b06a67cc85 100644 (file)
@@ -436,9 +436,13 @@ class Display(object):
                        self.verboseadd = None
                else:
                        if not pkg_info.merge:
-                               myprint = "[%s] %s%s" % \
+                               addl = ""
+                               if self.conf.verbosity == 3:
+                                       # add column for mask status
+                                       addl += " "
+                               myprint = "[%s%s] %s%s" % \
                                        (self.pkgprint(pkg_info.operation.ljust(13), pkg_info),
-                                       self.indent, self.pkgprint(pkg.cp, pkg_info))
+                                       addl, self.indent, self.pkgprint(pkg.cp, pkg_info))
                        else:
                                myprint = "[%s %s] %s%s" % \
                                        (self.pkgprint(pkg.type_name, pkg_info), addl,
@@ -461,9 +465,13 @@ class Display(object):
                @rtype the updated addl
                """
                if not pkg_info.merge:
-                       myprint = "[%s] %s%s %s" % \
+                       addl = ""
+                       if self.conf.verbosity == 3:
+                               # add column for mask status
+                               addl += " "
+                       myprint = "[%s%s] %s%s %s" % \
                                (self.pkgprint(pkg_info.operation.ljust(13),
-                               pkg_info),
+                               pkg_info), addl,
                                self.indent, self.pkgprint(pkg.cpv, pkg_info),
                                pkg_info.oldbest)
                else: