Updated for required

This commit is contained in:
Dimitris Zlatanidis 2023-04-01 10:33:50 +03:00
parent 3776a19977
commit 206fd628b7
2 changed files with 5 additions and 2 deletions

View file

@ -17,6 +17,7 @@ class Required:
self.special_repos: list = [
self.repos.salixos_repo_name,
self.repos.salixos_extra_repo_name,
self.repos.slackel_repo_name,
self.repos.slint_repo_name
]
@ -25,6 +26,7 @@ class Required:
""" Resolve the dependencies. """
required: list[str] = BinQueries(self.name, self.repo).required()
# Resolve dependencies for some special repos.
if self.repo in self.special_repos:
requires: list = []
for req in required:

View file

@ -13,10 +13,11 @@ class Requires:
def resolve(self) -> list:
""" Resolve the dependencies. """
requires: list[str] = SBoQueries(self.name).requires() # type: ignore
requires: list[str] = SBoQueries(self.name).requires()
for req in requires:
if req:
sub_requires: list[str] = SBoQueries(req).requires() # type: ignore
sub_requires: list[str] = SBoQueries(req).requires()
for sub in sub_requires:
requires.append(sub)