[improvement][aur] preventing the dependencies checking algorithm to add duplicates

This commit is contained in:
Vinícius Moreira
2020-03-05 19:19:44 -03:00
parent 1cbeae261e
commit bcc10c290e
2 changed files with 9 additions and 2 deletions

View File

@@ -553,11 +553,14 @@ class ArchManager(SoftwareManager):
return
for dep in missing_subdeps:
sorted_deps.append(dep)
if dep not in sorted_deps:
sorted_deps.append(dep)
for dep, repo in known_deps.items():
if repo != 'aur':
sorted_deps.append((dep, repo))
data = (dep, repo)
if data not in sorted_deps:
sorted_deps.append(data)
for dep in aur_deps:
sorted_deps.append((dep, 'aur'))