mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-29 20:34:22 +01:00
Updated for length require
This commit is contained in:
parent
789c328faf
commit
460c3538d5
1 changed files with 2 additions and 3 deletions
|
@ -45,9 +45,6 @@ class Tracking(Configs):
|
|||
self.view_the_main_package()
|
||||
self.view_no_dependencies()
|
||||
|
||||
if self.package_requires:
|
||||
self.require_length: int = max(len(name) for name in self.package_requires)
|
||||
|
||||
for require in self.package_requires:
|
||||
self.count_requires += 1
|
||||
|
||||
|
@ -100,6 +97,8 @@ class Tracking(Configs):
|
|||
|
||||
def set_package_requires(self, package: str) -> None:
|
||||
self.package_requires: tuple = self.data[package]['requires'].split()
|
||||
if self.package_requires:
|
||||
self.require_length: int = max(len(name) for name in self.package_requires)
|
||||
|
||||
def view_summary_of_tracking(self, package: str) -> None:
|
||||
print(f'\n{self.grey}{self.count_requires} dependencies for {package}{self.endc}\n')
|
||||
|
|
Loading…
Add table
Reference in a new issue