1
0

fix: do not invalidate new kernels while updating kbuild

This commit is contained in:
dump_stack() 2023-05-29 12:26:51 +00:00
parent 347fcbae60
commit 43d7643ba7
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -280,7 +280,6 @@ func findKbuild(versions []string, kpkgver string) (
func updateKbuild(toolsVersions []string, dk *DebianKernel) {
if !kver(dk.Version.Package).LessThan(kver("4.5-rc0")) {
dk.Internal.Invalid = true
return
}
@ -365,7 +364,11 @@ func getKernelsByVersion(slog zerolog.Logger, c *Cache, toolsVersions []string,
// version did not have a kbuild built from
// the linux source itself, but used the
// linux-tools source package.
updateKbuild(toolsVersions, &dk)
if !kver(dk.Version.Package).LessThan(kver("4.5-rc0")) {
dk.Internal.Invalid = true
} else {
updateKbuild(toolsVersions, &dk)
}
}
dk.Internal.LastFetch = time.Now()