mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Fix view
This commit is contained in:
parent
898a2f44b0
commit
e69a5acaab
1 changed files with 7 additions and 6 deletions
|
@ -170,10 +170,10 @@ class PackageManager(object):
|
||||||
def _view_removed(self):
|
def _view_removed(self):
|
||||||
"""View packages before removed
|
"""View packages before removed
|
||||||
"""
|
"""
|
||||||
removed, packages = self._get_removed()
|
|
||||||
print("\nPackages with name matching [ {0}{1}{2} ]\n".format(
|
print("\nPackages with name matching [ {0}{1}{2} ]\n".format(
|
||||||
self.meta.color["CYAN"], ", ".join(self.binary),
|
self.meta.color["CYAN"], ", ".join(self.binary),
|
||||||
self.meta.color["ENDC"]))
|
self.meta.color["ENDC"]))
|
||||||
|
removed, packages = self._get_removed()
|
||||||
if packages and "--checklist" in self.extra:
|
if packages and "--checklist" in self.extra:
|
||||||
removed = []
|
removed = []
|
||||||
pkgs = DialogUtil(
|
pkgs = DialogUtil(
|
||||||
|
@ -209,6 +209,7 @@ class PackageManager(object):
|
||||||
def _remove_summary(self):
|
def _remove_summary(self):
|
||||||
"""Removed packge size summary
|
"""Removed packge size summary
|
||||||
"""
|
"""
|
||||||
|
if self.size > 0:
|
||||||
print("\nRemoved summary")
|
print("\nRemoved summary")
|
||||||
print("=" * 79)
|
print("=" * 79)
|
||||||
print("{0}Size of removed packages {1} {2}.{3}".format(
|
print("{0}Size of removed packages {1} {2}.{3}".format(
|
||||||
|
|
Loading…
Add table
Reference in a new issue