Now .out-of-tree.toml can also define version of distro
This commit is contained in:
parent
a138681e1d
commit
cc87a792c5
11
main.go
11
main.go
@ -28,8 +28,9 @@ import (
|
||||
)
|
||||
|
||||
type kernelMask struct {
|
||||
DistroType distroType
|
||||
ReleaseMask string
|
||||
DistroType distroType
|
||||
DistroRelease string // 18.04/7.4.1708/9.1
|
||||
ReleaseMask string
|
||||
}
|
||||
|
||||
type artifactType int
|
||||
@ -71,6 +72,12 @@ func (ka artifact) checkSupport(ki kernelInfo, km kernelMask) (
|
||||
return
|
||||
}
|
||||
|
||||
// DistroRelease is optional
|
||||
if km.DistroRelease != "" && ki.DistroRelease != km.DistroRelease {
|
||||
supported = false
|
||||
return
|
||||
}
|
||||
|
||||
supported, err = regexp.MatchString(km.ReleaseMask, ki.KernelRelease)
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user