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) (
|
||||
supported bool, err error) {
|
||||
|
||||
if ki.Distro.ID != km.Distro.ID {
|
||||
supported = false
|
||||
return
|
||||
if km.Distro.Release == "" {
|
||||
if ki.Distro.ID != km.Distro.ID {
|
||||
return
|
||||
}
|
||||
} else {
|
||||
if !ki.Distro.Equal(km.Distro) {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
supported, err = regexp.MatchString(km.Kernel.Regex, ki.KernelRelease)
|
||||
|
Loading…
Reference in New Issue
Block a user