mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 08:53:15 +01:00
fix: opkg search glob (#1994)
Signed-off-by: Nicholas R. Smith <nicholas_smith@selinc.com>
This commit is contained in:
parent
433a7b8a42
commit
1d6d5f7f5f
@ -14,5 +14,5 @@ func NewDpkgdbCataloger() *generic.Cataloger {
|
|||||||
return generic.NewCataloger(catalogerName).
|
return generic.NewCataloger(catalogerName).
|
||||||
// note: these globs have been intentionally split up in order to improve search performance,
|
// note: these globs have been intentionally split up in order to improve search performance,
|
||||||
// please do NOT combine into: "**/var/lib/dpkg/{status,status.d/*}"
|
// please do NOT combine into: "**/var/lib/dpkg/{status,status.d/*}"
|
||||||
WithParserByGlobs(parseDpkgDB, "**/var/lib/dpkg/status", "**/var/lib/dpkg/status.d/*", "**/lib/opkg/info/*", "**/lib/opkg/status")
|
WithParserByGlobs(parseDpkgDB, "**/var/lib/dpkg/status", "**/var/lib/dpkg/status.d/*", "**/lib/opkg/info/*.control", "**/lib/opkg/status")
|
||||||
}
|
}
|
||||||
|
|||||||
@ -169,7 +169,7 @@ func TestCataloger_Globs(t *testing.T) {
|
|||||||
"var/lib/dpkg/status",
|
"var/lib/dpkg/status",
|
||||||
"var/lib/dpkg/status.d/pkg-1.0",
|
"var/lib/dpkg/status.d/pkg-1.0",
|
||||||
"usr/lib/opkg/status",
|
"usr/lib/opkg/status",
|
||||||
"usr/lib/opkg/info/pkg-1.0",
|
"usr/lib/opkg/info/pkg-1.0.control",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user