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