Updated to resolve full list of requires

This commit is contained in:
Dimitris Zlatanidis 2023-11-28 22:06:22 +02:00
parent 66260de98a
commit 5904bd5755

View file

@ -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)