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,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: