Fix view align

This commit is contained in:
Dimitris Zlatanidis 2015-06-23 18:20:47 +03:00
parent 8f64fedf65
commit 6a7e84f68f
4 changed files with 7 additions and 7 deletions

View file

@ -229,9 +229,9 @@ class BinaryInstall(object):
COLOR = self.meta.color["RED"]
uni_sum += 1
ver = get_installed_version(pkg_split[0])
print(" {0}{1}{2}{3} {4}{5} {6}{7}{8}{9}{10}{11:>11}{12}".format(
print(" {0}{1}{2}{3} {4}{5} {6}{7}{8}{9}{10}{11:>11}{12}".format(
COLOR, pkg_split[0] + ver, self.meta.color["ENDC"],
" " * (24-len(pkg_split[0] + ver)), pkg_split[1],
" " * (23-len(pkg_split[0] + ver)), pkg_split[1],
" " * (18-len(pkg_split[1])), pkg_split[2],
" " * (8-len(pkg_split[2])), pkg_split[3],
" " * (7-len(pkg_split[3])), repo,

View file

@ -107,7 +107,7 @@ class Updates(object):
def print_status(self, repo):
"""Print status
"""
print(" {0}{1}{2}".format(repo, " " * (20 - len(repo)), self.st))
print(" {0}{1}{2}".format(repo, " " * (19 - len(repo)), self.st))
def summary(self):
"""Print summary

View file

@ -213,9 +213,9 @@ class SBoInstall(object):
args[3] arch
"""
ver = get_installed_version(args[1])
print(" {0}{1}{2}{3} {4}{5} {6}{7}{8}{9}{10}{11:>11}{12}".format(
print(" {0}{1}{2}{3} {4}{5} {6}{7}{8}{9}{10}{11:>11}{12}".format(
args[0], args[1] + ver, self.meta.color["ENDC"],
" " * (24-len(args[1] + ver)), args[2],
" " * (23-len(args[1] + ver)), args[2],
" " * (18-len(args[2])), args[3],
" " * (15-len(args[3])), "",
"", "SBo", "", "")).rstrip()

View file

@ -163,9 +163,9 @@ class Patches(object):
if not find_package(pkg_split[0], self.meta.pkg_path):
color = self.meta.color["RED"]
ver = get_installed_version(pkg_split[0])
print(" {0}{1}{2}{3} {4}{5} {6}{7}{8}{9}{10}{11:>12}{12}".format(
print(" {0}{1}{2}{3} {4}{5} {6}{7}{8}{9}{10}{11:>12}{12}".format(
color, pkg_split[0] + ver, self.meta.color["ENDC"],
" " * (24-len(pkg_split[0] + ver)), pkg_split[1],
" " * (23-len(pkg_split[0] + ver)), pkg_split[1],
" " * (18-len(pkg_split[1])), pkg_split[2],
" " * (8-len(pkg_split[2])), pkg_split[3],
" " * (7-len(pkg_split[3])), "Slack",