Skip to content

Commit

Permalink
Quick fix to yay -Si error code Jguer#430. Will return all possible v…
Browse files Browse the repository at this point in the history
…alues and then error

Signed-off-by: Jguer <me@jguer.space>
  • Loading branch information
Jguer committed May 28, 2018
1 parent 70e5f43 commit 6d70716
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion query.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,16 @@ func syncInfo(pkgS []string) (err error) {
}
}

if len(aurS) != 0 {
if len(info) != 0 {
for _, pkg := range info {
PrintInfo(pkg)
}
}

if len(aurS) != len(info) {
return fmt.Errorf("Could not find all required packages")
}

return
}

Expand Down

0 comments on commit 6d70716

Please sign in to comment.