mirror of
https://github.com/anchore/syft.git
synced 2026-11-05 08:56:41 +01:00
20 lines
874 B
Go
20 lines
874 B
Go
/*
|
|
Package debian provides a concrete Cataloger implementation relating to packages within the Debian linux distribution.
|
|
*/
|
|
package debian
|
|
|
|
import (
|
|
"github.com/anchore/syft/syft/pkg"
|
|
"github.com/anchore/syft/syft/pkg/cataloger/generic"
|
|
"github.com/anchore/syft/syft/pkg/cataloger/internal/dependency"
|
|
)
|
|
|
|
// NewDBCataloger returns a new Deb package cataloger capable of parsing DPKG status DB flat-file stores.
|
|
func NewDBCataloger() pkg.Cataloger {
|
|
return generic.NewCataloger("dpkg-db-cataloger").
|
|
// 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/*}"
|
|
WithParserByGlobs(parseDpkgDB, "**/lib/dpkg/status", "**/lib/dpkg/status.d/*", "**/lib/opkg/info/*.control", "**/lib/opkg/status").
|
|
WithProcessors(dependency.Processor(dbEntryDependencySpecifier))
|
|
}
|