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) {
|
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",
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user