From eda23b45b975428906a18d1dfdcd5802262c7c2f Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Mon, 15 May 2023 11:14:59 +0000 Subject: [PATCH] feat: combined packages list --- distro/debian/kernel.go | 7 +++++++ 1 file changed, 7 insertions(+) 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)