1
0

fix: check that the kernel is from the same distribution

This commit is contained in:
dump_stack() 2023-06-01 13:52:55 +00:00
parent a72d9b77de
commit 49388981aa
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -99,6 +99,10 @@ func (cmd *KernelCmd) GenKernel(km config.Target, pkg string) {
reinstall := false reinstall := false
for _, kinfo := range cmd.kcfg.Kernels { for _, kinfo := range cmd.kcfg.Kernels {
if !km.Distro.Equal(kinfo.Distro) {
continue
}
var found bool var found bool
if kinfo.Distro.ID == distro.Debian { // FIXME if kinfo.Distro.ID == distro.Debian { // FIXME
found = pkg == kinfo.Package found = pkg == kinfo.Package