1
0

feat: match kbuild

This commit is contained in:
dump_stack() 2023-05-14 13:59:25 +00:00
parent f8f3424e1e
commit e9ced28b29
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
2 changed files with 4 additions and 3 deletions

View File

@ -46,7 +46,7 @@ var (
func GetDebianKernel(version string) (dk DebianKernel, err error) { func GetDebianKernel(version string) (dk DebianKernel, err error) {
dk.Version.Package = version dk.Version.Package = version
regex := `^linux-(image|headers)-[a-z+~0-9\.\-]*-(common|amd64|amd64-unsigned)$` regex := `^(linux-(image|headers)-[a-z+~0-9\.\-]*-(common|amd64|amd64-unsigned)|linux-kbuild-.*)$`
filter := []string{ filter := []string{
"rt-amd64", "rt-amd64",

View File

@ -19,8 +19,9 @@ func TestSourcePackageVersions(t *testing.T) {
} }
func TestPackages(t *testing.T) { func TestPackages(t *testing.T) {
rx := `^linux-(image|headers)-[0-9\.\-]*-(common|amd64|amd64-unsigned)$` rx := `^(linux-(image|headers)-[a-z+~0-9\.\-]*-(common|amd64|amd64-unsigned)|linux-kbuild-.*)$`
packages, err := Packages("linux", "3.16.5-1", rx,
packages, err := Packages("linux", "5.10.179-1", rx,
[]string{"amd64", "all"}, []string{}) []string{"amd64", "all"}, []string{})
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)