1
0
Fork 0

Now .out-of-tree.toml can also define version of distro

master
dump_stack() 4 years ago
parent a138681e1d
commit cc87a792c5

@ -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…
Cancel
Save