Fix matching packages when remove

This commit is contained in:
Dimitris Zlatanidis 2015-07-22 00:26:39 +03:00
parent a4c5c42b52
commit 14d9037cd9

View file

@ -146,8 +146,7 @@ class PackageManager(object):
pkgs = find_package(pkg + self.meta.sp, self.meta.pkg_path)
if pkgs:
print("[ {0}delete{1} ] --> {2}".format(
self.meta.color["RED"], self.meta.color["ENDC"],
"\n ".join(pkgs)))
self.meta.color["RED"], self.meta.color["ENDC"], pkgs[0]))
removed.append(pkg)
else:
Msg().pkg_not_found("", pkg, "Can't remove", "")