Quick fix to yay -Si error code #430. Will return all possible values and then error

Signed-off-by: Jguer <me@jguer.space>
This commit is contained in:
Jguer 2018-05-28 13:43:02 +01:00
parent 70e5f43171
commit 6d70716ba2

View File

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