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,18 +30,15 @@ class Required:
|
|||
|
||||
# Resolve dependencies for some special repos.
|
||||
if self.repo in self.special_repos:
|
||||
requires: list = []
|
||||
for req in required:
|
||||
if req in list(self.data.keys()):
|
||||
requires.append(req)
|
||||
if req not in list(self.data.keys()):
|
||||
required.remove(req)
|
||||
|
||||
required.reverse()
|
||||
return list(dict.fromkeys(requires))
|
||||
|
||||
for req in required:
|
||||
sub_required: list[str] = list(self.remove_deps(self.data[req][6].split()))
|
||||
for sub in sub_required:
|
||||
required.append(sub)
|
||||
else:
|
||||
for req in required:
|
||||
sub_required: list[str] = list(self.remove_deps(self.data[req][6].split()))
|
||||
for sub in sub_required:
|
||||
required.append(sub)
|
||||
|
||||
required.reverse()
|
||||
return list(dict.fromkeys(required))
|
||||
|
|
Loading…
Add table
Reference in a new issue