From 138b0f27dd05c8949c10a1afcacafc919a54498b Mon Sep 17 00:00:00 2001 From: Jguer Date: Mon, 30 Oct 2017 21:36:50 +0900 Subject: [PATCH] Check if package is already in upgrade list and skip it. References #60 --- upgrade.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/upgrade.go b/upgrade.go index 14f896ba..5195cab7 100644 --- a/upgrade.go +++ b/upgrade.go @@ -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++