commit:     a9d95096d9ed12c0d71cc792ab2d13b2550375c4
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 10 08:02:54 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Mar 10 10:38:42 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9d95096

kernel-install.eclass: Fix updating symlink w/ localversion

Closes: https://bugs.gentoo.org/775176
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 eclass/kernel-install.eclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eclass/kernel-install.eclass b/eclass/kernel-install.eclass
index a700c13e787..e3357cda0fd 100644
--- a/eclass/kernel-install.eclass
+++ b/eclass/kernel-install.eclass
@@ -97,6 +97,7 @@ kernel-install_update_symlink() {
                local symlink_target=$(readlink "${target}")
                local symlink_ver=${symlink_target#${target##*/}-}
                local updated=
+               symlink_ver=${symlink_ver%${KV_LOCALVERSION}}
                if [[ ${symlink_target} == ${target##*/}-* && \
                                -z ${symlink_ver//[0-9.]/} ]]
                then

Reply via email to