mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-16 03:41:11 +01:00
Updated for required
This commit is contained in:
parent
3776a19977
commit
206fd628b7
2 changed files with 5 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue