fix: correct support for empty release
This commit is contained in:
parent
6db5ffc8c2
commit
b631767d98
@ -168,9 +168,14 @@ type Artifact struct {
|
|||||||
func (ka Artifact) checkSupport(ki distro.KernelInfo, km Target) (
|
func (ka Artifact) checkSupport(ki distro.KernelInfo, km Target) (
|
||||||
supported bool, err error) {
|
supported bool, err error) {
|
||||||
|
|
||||||
if ki.Distro.ID != km.Distro.ID {
|
if km.Distro.Release == "" {
|
||||||
supported = false
|
if ki.Distro.ID != km.Distro.ID {
|
||||||
return
|
return
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if !ki.Distro.Equal(km.Distro) {
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
supported, err = regexp.MatchString(km.Kernel.Regex, ki.KernelRelease)
|
supported, err = regexp.MatchString(km.Kernel.Regex, ki.KernelRelease)
|
||||||
|
Loading…
Reference in New Issue
Block a user