fix: match exact version (binpackages can return more than one)
This commit is contained in:
parent
501dcb23ae
commit
f85ad89130
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user