1
0
Fork 0

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

timestamps
dump_stack() 2023-05-14 19:48:15 +00:00
parent 501dcb23ae
commit f85ad89130
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 3 additions and 0 deletions

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
}