diff --git a/download.go b/download.go index aace4b8b..7359aed9 100644 --- a/download.go +++ b/download.go @@ -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 } diff --git a/query.go b/query.go index c5b7323b..04ff8386 100644 --- a/query.go +++ b/query.go @@ -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 }