1
0

Do not produce error on empty response

This commit is contained in:
dump_stack() 2023-05-11 22:06:31 +00:00
parent 53324e663a
commit a77d56c26b
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -285,6 +285,10 @@ func contains(pkgs []Package, pkg Package) bool {
func Packages(srcname, version, arch, regex string) (pkgs []Package, err error) { func Packages(srcname, version, arch, regex string) (pkgs []Package, err error) {
binpkgs, err := mr.GetBinpackages(srcname, version) binpkgs, err := mr.GetBinpackages(srcname, version)
if err == mr.ErrNotFound {
err = nil
return
}
if err != nil { if err != nil {
return return
} }