feat: match kbuild
This commit is contained in:
parent
f8f3424e1e
commit
e9ced28b29
@ -46,7 +46,7 @@ var (
|
||||
func GetDebianKernel(version string) (dk DebianKernel, err error) {
|
||||
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{
|
||||
"rt-amd64",
|
||||
|
@ -19,8 +19,9 @@ func TestSourcePackageVersions(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestPackages(t *testing.T) {
|
||||
rx := `^linux-(image|headers)-[0-9\.\-]*-(common|amd64|amd64-unsigned)$`
|
||||
packages, err := Packages("linux", "3.16.5-1", rx,
|
||||
rx := `^(linux-(image|headers)-[a-z+~0-9\.\-]*-(common|amd64|amd64-unsigned)|linux-kbuild-.*)$`
|
||||
|
||||
packages, err := Packages("linux", "5.10.179-1", rx,
|
||||
[]string{"amd64", "all"}, []string{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
Loading…
Reference in New Issue
Block a user