Skip to content

Commit

Permalink
Don't show package in aur/ if it is also in devel/
Browse files Browse the repository at this point in the history
  • Loading branch information
Morganamilo committed Mar 22, 2018
1 parent 624851b commit bb211fd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,21 @@ func upList(dt *depTree) (aurUp upSlice, repoUp upSlice, err error) {

if len(errs) > 0 {
err = fmt.Errorf("%s", strings.Join(errs, "\n"))
return nil, nil, err
}

if develUp != nil {
aurUp = append(aurUp, develUp...)
names := make(stringSet)
for _, up := range develUp {
names.set(up.Name)
}
for _, up := range aurUp {
if !names.get(up.Name) {
develUp = append(develUp, up)
}
}

aurUp = develUp
}

return aurUp, repoUp, err
Expand Down

0 comments on commit bb211fd

Please sign in to comment.