1
0

Match also centos mask as string

This commit is contained in:
dump_stack() 2023-04-05 18:04:22 +00:00
parent b98abe4a83
commit fcfbf4f36d
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -213,8 +213,10 @@ func matchCentOSDevelPkg(container, mask string, generic bool) (
return return
} }
for _, k := range r.FindAll([]byte(output), -1) { for _, pkg := range strings.Fields(output) {
pkgs = append(pkgs, string(k)) if r.MatchString(pkg) || strings.Contains(pkg, mask) {
pkgs = append(pkgs, pkg)
}
} }
return return