Fix remove None type packages

This commit is contained in:
Dimitris Zlatanidis 2015-08-31 04:53:32 +03:00
parent 266e82e18f
commit 7951e7cb1e

View file

@ -184,9 +184,10 @@ class PackageManager(object):
self.meta.__all__,
self.meta.__version__),
status=True).checklist()
for rmv in pkgs:
removed.append(split_package(rmv)[0])
self.meta.default_answer = "y"
if pkgs:
for rmv in pkgs:
removed.append(split_package(rmv)[0])
self.meta.default_answer = "y"
else:
for rmv, pkg in zip(removed, packages):
print("[ {0}delete{1} ] --> {2}".format(