Improve templates

This commit is contained in:
Dimitris Zlatanidis 2015-06-23 04:16:01 +03:00
parent 9669740441
commit 116f9d9338

View file

@ -53,12 +53,13 @@ def find_from_repos(pkg):
cache = repo cache = repo
count_pkg += 1 count_pkg += 1
ver = sbo_version(repo, find) ver = sbo_version(repo, find)
print("| {0}{1}{2} {3}{4:>11}".format( print(" {0}{1}{2} {3}{4:>11}".format(
repo, " " * (12 - len(repo)), repo, " " * (12 - len(repo)),
find + ver, " " * (53 - len(find + ver)), find + ver, " " * (53 - len(find + ver)),
size)) size))
Msg().template(78) print("\nFound summary")
print("{0} Total found {1} packages in {2} repositories.{3}\n".format( print("=" * 79)
print("{0}Total found {1} packages in {2} repositories.{3}\n".format(
_meta_.color["GREY"], count_pkg, count_repo, _meta_.color["ENDC"])) _meta_.color["GREY"], count_pkg, count_repo, _meta_.color["ENDC"]))
except KeyboardInterrupt: except KeyboardInterrupt:
print("") # new line at exit print("") # new line at exit