kernel-install.eclass: Update symlink if target has no sources

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2021-03-11 14:25:05 +01:00
parent 138797c632
commit 0b7fdcf2a3

View File

@@ -89,6 +89,9 @@ kernel-install_can_update_symlink() {
# if the symlink does not exist or is broken, update
[[ ! -e ${target} ]] && return 0
# if the target does not seem to contain kernel sources
# (i.e. is probably a leftover directory), update
[[ ! -e ${target}/Makefile ]] && return 0
local symlink_target=$(readlink "${target}")
# the symlink target should start with the same basename as target