diff --git a/distro/debian/snapshot/snapshot.go b/distro/debian/snapshot/snapshot.go index 89b3a12..f453e62 100644 --- a/distro/debian/snapshot/snapshot.go +++ b/distro/debian/snapshot/snapshot.go @@ -311,6 +311,9 @@ func Packages(srcname, version, regex string, archs, filter []string) ( r := regexp.MustCompile(regex) for _, res := range binpkgs.Result { + if res.Version != version { + continue + } if !r.MatchString(res.Name) || filtered(res.Name, filter) { continue }