mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Fix remove None type packages
This commit is contained in:
parent
266e82e18f
commit
7951e7cb1e
1 changed files with 4 additions and 3 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue