mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
Check if package is already in upgrade list and skip it. References #60
This commit is contained in:
parent
1f29de4805
commit
138b0f27dd
1 changed files with 5 additions and 0 deletions
|
@ -241,6 +241,11 @@ func upAUR(remote []alpm.Package, remoteNames []string) (toUpgrade upSlice, err
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case pkg := <-packageC:
|
case pkg := <-packageC:
|
||||||
|
for _, w := range toUpgrade {
|
||||||
|
if w.Name == pkg.Name {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
}
|
||||||
toUpgrade = append(toUpgrade, pkg)
|
toUpgrade = append(toUpgrade, pkg)
|
||||||
case <-done:
|
case <-done:
|
||||||
routineDone++
|
routineDone++
|
||||||
|
|
Loading…
Reference in a new issue