mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
Updated to resolve full list of requires
This commit is contained in:
parent
66260de98a
commit
5904bd5755
1 changed files with 6 additions and 1 deletions
|
@ -4,6 +4,8 @@
|
|||
from slpkg.configs import Configs
|
||||
from slpkg.utilities import Utilities
|
||||
from slpkg.views.asciibox import AsciiBox
|
||||
from slpkg.sbos.dependencies import Requires
|
||||
from slpkg.binaries.required import Required
|
||||
|
||||
|
||||
class Tracking(Configs):
|
||||
|
@ -96,7 +98,10 @@ class Tracking(Configs):
|
|||
self.package_version: str = self.data[package]['version']
|
||||
|
||||
def set_package_requires(self, package: str) -> None:
|
||||
self.package_requires: tuple = self.data[package]['requires'].split()
|
||||
if self.is_binary:
|
||||
self.package_requires: tuple = Required(self.data, package).resolve()
|
||||
else:
|
||||
self.package_requires: tuple = Requires(self.data, package).resolve()
|
||||
if self.package_requires:
|
||||
self.require_length: int = max(len(name) for name in self.package_requires)
|
||||
|
||||
|
|
Loading…
Reference in a new issue