From da9a243ee4a2551493f67c6a75cbffb29069cbd6 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Thu, 11 May 2023 20:52:33 +0000 Subject: [PATCH] Match bpo only --- distro/debian/kernel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distro/debian/kernel.go b/distro/debian/kernel.go index 3e6555b..ebc3802 100644 --- a/distro/debian/kernel.go +++ b/distro/debian/kernel.go @@ -34,7 +34,7 @@ var ( func GetDebianKernel(version string) (dk DebianKernel, err error) { dk.Version.Package = version - regex := `^linux-(image|headers)-[a-z0-9\.\-]*-(amd64|amd64-unsigned)$` + regex := `^linux-(image|headers)-[bpo0-9\.\-]*-(amd64|amd64-unsigned)$` packages, err := snapshot.Packages("linux", version, "amd64", regex) if err != nil {