Skip to content

Commit

Permalink
Only add "tkg" tag to localversion if _custom_pkgbase doesn't contain it
Browse files Browse the repository at this point in the history
Prevents double tagging
  • Loading branch information
Tk-Glitch committed May 20, 2024
1 parent 8d36ad6 commit 88034af
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions linux-tkg-config/prepare
Original file line number Diff line number Diff line change
Expand Up @@ -648,8 +648,11 @@ _tkg_srcprep() {

if [ "${_distro}" = "Arch" ]; then
if [ -n "$_custom_pkgbase" ]; then
echo "-$pkgrel-tkg-${_custom_pkgbase}" > localversion.10-pkgrel
echo -e "Version tail set to \"-$pkgrel-tkg-${_custom_pkgbase}\"\n" > "$_where"/logs/prepare.log.txt
if [[ "$_custom_pkgbase" != *tkg* ]]; then
_localversion_tag="-tkg-"
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
else
echo "-$pkgrel-tkg-${_cpusched}${_compiler_name}" > localversion.10-pkgrel
echo -e "Version tail set to \"-$pkgrel-tkg-${_cpusched}${_compiler_name}\"\n" > "$_where"/logs/prepare.log.txt
Expand Down

0 comments on commit 88034af

Please sign in to comment.