mirror of
https://github.com/anchore/syft.git
synced 2026-11-04 16:36:40 +01:00
cataloger: use ** for glob patterns
Signed-off-by: Alfredo Deza <adeza@anchore.com>
This commit is contained in:
@@ -12,12 +12,12 @@ type Cataloger struct {
|
||||
}
|
||||
|
||||
func NewCataloger() *Cataloger {
|
||||
pathParsers := map[string]common.ParserFn{
|
||||
"/var/lib/dpkg/status": parseDpkgStatus,
|
||||
globParsers := map[string]common.ParserFn{
|
||||
"**/var/lib/dpkg/status": parseDpkgStatus,
|
||||
}
|
||||
|
||||
return &Cataloger{
|
||||
cataloger: common.NewGenericCataloger(pathParsers, nil),
|
||||
cataloger: common.NewGenericCataloger(nil, globParsers),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user