self.blocker_style = "PKG_BLOCKER"
addl = "%s %s " % (colorize(self.blocker_style, "B"),
fetch_symbol)
- if self.conf.verbosity == 3:
- # add column for mask status
- addl += " "
+ addl += self.empty_space_in_brackets()
self.resolved = dep_expand(
str(pkg.atom).lstrip("!"), mydb=self.vardb,
settings=self.pkgsettings
return mask_str
+ def empty_space_in_brackets(self):
+ space = ""
+ if self.conf.verbosity == 3:
+ # add column for mask status
+ space += " "
+ return space
+
def map_to_use_expand(self, myvals, forced_flags=False,
remove_hidden=True):
"""Map use expand variables
self.verboseadd = None
else:
if not pkg_info.merge:
- addl = ""
- if self.conf.verbosity == 3:
- # add column for mask status
- addl += " "
+ addl = self.empty_space_in_brackets()
myprint = "[%s%s] %s%s" % \
(self.pkgprint(pkg_info.operation.ljust(13), pkg_info),
addl, self.indent, self.pkgprint(pkg.cp, pkg_info))
@rtype the updated addl
"""
if not pkg_info.merge:
- addl = ""
- if self.conf.verbosity == 3:
- # add column for mask status
- addl += " "
+ addl = self.empty_space_in_brackets()
myprint = "[%s%s] %s%s %s" % \
(self.pkgprint(pkg_info.operation.ljust(13),
pkg_info), addl,
addl, pkg_info, pkg)
else:
if not pkg_info.merge:
- addl = ""
- if self.conf.verbosity == 3:
- # add column for mask status
- addl += " "
+ addl = self.empty_space_in_brackets()
myprint = "[%s%s] " % (
self.pkgprint(pkg_info.operation.ljust(13),
pkg_info), addl,