Updated for list

This commit is contained in:
Dimitris Zlatanidis 2023-04-20 08:52:20 +03:00
parent 5d67e279d6
commit 42223f2d06

View file

@ -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))