mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Removed utilities from resolving
This commit is contained in:
parent
ad7b723aca
commit
61f92f0faa
2 changed files with 2 additions and 9 deletions
|
@ -1,7 +1,6 @@
|
|||
#!/usr/bin/python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from slpkg.utilities import Utilities
|
||||
from slpkg.repositories import Repositories
|
||||
|
||||
|
||||
|
@ -14,7 +13,6 @@ class Required:
|
|||
self.data: dict = data
|
||||
self.name: str = name
|
||||
self.repos = Repositories()
|
||||
self.utils = Utilities()
|
||||
|
||||
self.special_repos: list = [
|
||||
self.repos.salixos_repo_name,
|
||||
|
@ -41,7 +39,7 @@ class Required:
|
|||
|
||||
# Remove requirements that are included as dependencies,
|
||||
# but are not included in the repository.
|
||||
if req not in list(self.data.keys()) or self.utils.blacklist_pattern(req):
|
||||
if req not in list(self.data.keys()):
|
||||
required.remove(req)
|
||||
continue
|
||||
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
#!/usr/bin/python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from slpkg.utilities import Utilities
|
||||
|
||||
|
||||
class Requires:
|
||||
""" Creates a list of dependencies with
|
||||
the right order to install. """
|
||||
|
@ -13,8 +10,6 @@ class Requires:
|
|||
self.data: dict = data
|
||||
self.name: str = name
|
||||
|
||||
self.utils = Utilities()
|
||||
|
||||
def resolve(self) -> list:
|
||||
""" Resolve the dependencies. """
|
||||
requires: list[str] = self.data[self.name][7].split()
|
||||
|
@ -23,7 +18,7 @@ class Requires:
|
|||
|
||||
# Remove requirements that are included as dependencies,
|
||||
# but are not included in the repository.
|
||||
if req not in list(self.data.keys()) or self.utils.blacklist_pattern(req):
|
||||
if req not in list(self.data.keys()):
|
||||
requires.remove(req)
|
||||
continue
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue