[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

@@ -9,6 +9,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Web
- not able to inject javascript fixes ( WhatsApp Web not working) [#74](https://github.com/vinifmor/bauh/issues/74)
### Improvements
- AUR
- preventing the dependencies checking algorithm to add duplicates
### i18n
- Russian ( ru ):
- [leoneii](https://github.com/leoneii) - PRs: [#66](https://github.com/vinifmor/bauh/pull/66), [#67](https://github.com/vinifmor/bauh/pull/67), [#68](https://github.com/vinifmor/bauh/pull/68)

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