mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-17 07:48:18 +01:00
Updated for coding style
This commit is contained in:
parent
2185c8ddc0
commit
e7c67e0cfd
2 changed files with 12 additions and 4 deletions
|
@ -32,7 +32,9 @@ class Required:
|
|||
|
||||
def resolve(self) -> tuple:
|
||||
""" Resolve the dependencies. """
|
||||
required: list[str] = list(self.remove_deps(self.data[self.name]['requires'].split()))
|
||||
required: list[str] = list(
|
||||
self.remove_deps(self.data[self.name]['requires'].split())
|
||||
)
|
||||
|
||||
# Resolve dependencies for some special repos.
|
||||
if self.repo in self.special_repos:
|
||||
|
@ -42,7 +44,9 @@ class Required:
|
|||
|
||||
else:
|
||||
for req in required:
|
||||
sub_required: list[str] = list(self.remove_deps(self.data[req]['requires'].split()))
|
||||
sub_required: list[str] = list(
|
||||
self.remove_deps(self.data[req]['requires'].split())
|
||||
)
|
||||
for sub in sub_required:
|
||||
required.append(sub)
|
||||
|
||||
|
|
|
@ -16,10 +16,14 @@ class Requires:
|
|||
|
||||
def resolve(self) -> tuple:
|
||||
""" Resolve the dependencies. """
|
||||
requires: list[str] = list(self.remove_deps(self.data[self.name]['requires'].split()))
|
||||
requires: list[str] = list(
|
||||
self.remove_deps(self.data[self.name]['requires'].split())
|
||||
)
|
||||
|
||||
for req in requires:
|
||||
sub_requires: list[str] = list(self.remove_deps(self.data[req]['requires'].split()))
|
||||
sub_requires: list[str] = list(
|
||||
self.remove_deps(self.data[req]['requires'].split())
|
||||
)
|
||||
for sub in sub_requires:
|
||||
requires.append(sub)
|
||||
|
||||
|
|
Loading…
Reference in a new issue