diff --git a/distro/debian/kernel.go b/distro/debian/kernel.go index e22e3c9..670fa9f 100644 --- a/distro/debian/kernel.go +++ b/distro/debian/kernel.go @@ -48,6 +48,13 @@ func (dk DebianKernel) HasDependency(pkgname string) bool { return false } +func (dk DebianKernel) Packages() (pkgs []snapshot.Package) { + pkgs = append(pkgs, dk.Image) + pkgs = append(pkgs, dk.Headers...) + pkgs = append(pkgs, dk.Dependencies...) + return +} + // use only for inline comparison func kver(ver string) *semver.Version { ver = strings.Replace(ver, "~", "-", -1)