Do not produce error on empty response
This commit is contained in:
parent
53324e663a
commit
a77d56c26b
@ -285,6 +285,10 @@ func contains(pkgs []Package, pkg Package) bool {
|
||||
|
||||
func Packages(srcname, version, arch, regex string) (pkgs []Package, err error) {
|
||||
binpkgs, err := mr.GetBinpackages(srcname, version)
|
||||
if err == mr.ErrNotFound {
|
||||
err = nil
|
||||
return
|
||||
}
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user