From 43b497f84b5be0209d4eb84c38cd16616c2749f0 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Tue, 1 Oct 2024 03:42:49 +0200 Subject: [PATCH] prepare: Set _localversion_tag to a dash when using a _custom_pkgbase containing "tkg". Fixes https://github.com/Frogging-Family/linux-tkg/issues/986 --- linux-tkg-config/prepare | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index 63caa82e..b8a5e54d 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -656,6 +656,8 @@ _tkg_srcprep() { if [ -n "$_custom_pkgbase" ]; then if [[ "$_custom_pkgbase" != *tkg* ]]; then _localversion_tag="-tkg-" + else + _localversion_tag="-" fi echo "-${pkgrel}${_localversion_tag}${_custom_pkgbase}" > localversion.10-pkgrel echo -e "Version tail set to \"-${pkgrel}${_localversion_tag}${_custom_pkgbase}\"\n" > "$_where"/logs/prepare.log.txt