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