Check if package is already in upgrade list and skip it. References #60

This commit is contained in:
Jguer 2017-10-30 21:36:50 +09:00
parent 1f29de4805
commit 138b0f27dd

View file

@ -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++