mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
kernel-install.eclass: Update symlink if target has no sources
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user