mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated for list
This commit is contained in:
parent
5d67e279d6
commit
42223f2d06
1 changed files with 7 additions and 10 deletions
|
@ -30,14 +30,11 @@ class Required:
|
||||||
|
|
||||||
# Resolve dependencies for some special repos.
|
# Resolve dependencies for some special repos.
|
||||||
if self.repo in self.special_repos:
|
if self.repo in self.special_repos:
|
||||||
requires: list = []
|
|
||||||
for req in required:
|
for req in required:
|
||||||
if req in list(self.data.keys()):
|
if req not in list(self.data.keys()):
|
||||||
requires.append(req)
|
required.remove(req)
|
||||||
|
|
||||||
required.reverse()
|
|
||||||
return list(dict.fromkeys(requires))
|
|
||||||
|
|
||||||
|
else:
|
||||||
for req in required:
|
for req in required:
|
||||||
sub_required: list[str] = list(self.remove_deps(self.data[req][6].split()))
|
sub_required: list[str] = list(self.remove_deps(self.data[req][6].split()))
|
||||||
for sub in sub_required:
|
for sub in sub_required:
|
||||||
|
|
Loading…
Add table
Reference in a new issue