diff --git a/distro/debian/snapshot/mr/mr.go b/distro/debian/snapshot/mr/mr.go index 198d9ca..5547c1f 100644 --- a/distro/debian/snapshot/mr/mr.go +++ b/distro/debian/snapshot/mr/mr.go @@ -160,8 +160,8 @@ func GetInfo(hash string) (info Info, err error) { return } - if len(info.Result) != 1 { - err = errors.New("API mismatch") + if len(info.Result) == 0 { + err = errors.New("empty response") } return }