From 8316a765781e08f4ae22eca74ca4c84d0eede5b6 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Tue, 23 Sep 2014 05:18:14 +0300 Subject: [PATCH] fix source --- slpkg/pkg/manager.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/slpkg/pkg/manager.py b/slpkg/pkg/manager.py index 4962ad64..18d3e4ed 100755 --- a/slpkg/pkg/manager.py +++ b/slpkg/pkg/manager.py @@ -171,7 +171,8 @@ def pkg_find(binary): for match in sorted(os.listdir(pkg_path)): if binary in match: matching += 1 - print colors.GREEN + "[ installed ] -" + colors.ENDC, match + print("[ {0}installed{1} ] - {2}".format( + colors.GREEN, colors.ENDC, match)) f = open(pkg_path + match, "r") data = f.read() f.close() @@ -185,12 +186,12 @@ def pkg_find(binary): if matching == 0: print("No package was found to match\n") else: - print("\n{0}Found {1} matching packages.{2}".format(colors.GREY, matching, colors.ENDC)) + print("\n{0}Total found {1} matching packages.{2}".format(colors.GREY, matching, colors.ENDC)) unit = "Kb" if size > 1024: unit = "Mb" size = (size / 1024) - print("{0}Total size of installed packages {1} {2}{3}\n".format( + print("{0}Size of installed packages {1} {2}{3}\n".format( colors.GREY, round(size, 2), unit, colors.ENDC)) def pkg_display(binary):