Match also centos mask as string
This commit is contained in:
parent
b98abe4a83
commit
fcfbf4f36d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user