diff --git a/distro/debian/kernel.go b/distro/debian/kernel.go index 38a53b8..3e6555b 100644 --- a/distro/debian/kernel.go +++ b/distro/debian/kernel.go @@ -37,6 +37,9 @@ func GetDebianKernel(version string) (dk DebianKernel, err error) { regex := `^linux-(image|headers)-[a-z0-9\.\-]*-(amd64|amd64-unsigned)$` packages, err := snapshot.Packages("linux", version, "amd64", regex) + if err != nil { + return + } if len(packages) == 0 { err = ErrNoBinaryPackages return