Match also as string
This commit is contained in:
parent
72d51c0e1c
commit
b98abe4a83
@ -182,10 +182,10 @@ func matchDebImagePkg(container, mask string) (pkgs []string, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
kernels := r.FindAll([]byte(output), -1)
|
||||
for _, k := range kernels {
|
||||
pkg := string(k)
|
||||
pkgs = append(pkgs, pkg)
|
||||
for _, pkg := range strings.Fields(output) {
|
||||
if r.MatchString(pkg) || strings.Contains(pkg, mask) {
|
||||
pkgs = append(pkgs, pkg)
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user