mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Added version and size of removed deps
This commit is contained in:
parent
4b52285459
commit
b204ffdaa9
1 changed files with 10 additions and 1 deletions
|
@ -204,9 +204,18 @@ class PackageManager(object):
|
|||
self.msg.template(78)
|
||||
print("| Found dependencies for package {0}:".format(package))
|
||||
self.msg.template(78)
|
||||
self.size = 0
|
||||
for dep in dependencies.splitlines():
|
||||
if GetFromInstalled(dep).name():
|
||||
print("| {0}{1}{2}".format(self.meta.color["RED"], dep,
|
||||
ver = GetFromInstalled(dep).version()
|
||||
package = max(find_package(dep + ver, self.meta.pkg_path))
|
||||
self._sizes(package)
|
||||
print("| {0}{1}{2}".format(self.meta.color["RED"], dep + ver,
|
||||
self.meta.color["ENDC"]))
|
||||
self._calc_sizes()
|
||||
self.msg.template(78)
|
||||
print("| {0}Size of removed dependencies {1} {2}{3}".format(
|
||||
self.meta.color["GREY"], round(self.size, 2), self.unit,
|
||||
self.meta.color["ENDC"]))
|
||||
self.msg.template(78)
|
||||
return dependencies
|
||||
|
|
Loading…
Reference in a new issue