Merge pull request #431 from Jguer/fix-430

Exit code 1 when packages are missing from -Si and -G
This commit is contained in:
J Guerreiro 2018-05-28 13:48:43 +01:00 committed by GitHub
commit e5b9f0aff4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View File

@ -196,5 +196,9 @@ func getPkgbuildsfromAUR(pkgs []string, dir string) (err error) {
}
}
if len(aq) != len(pkgs) {
return fmt.Errorf("Could not find all required packages")
}
return
}

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
}