1
0

fix: match exact version (binpackages can return more than one)

This commit is contained in:
dump_stack() 2023-05-14 19:48:15 +00:00
parent 501dcb23ae
commit f85ad89130
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -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
}