From fde290233afb2aec1d299b4c7299877b5c454888 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Thu, 1 Apr 2021 23:53:28 +0200 Subject: [PATCH] Tighten the sub check to also skip RCs Thanks to Iglu47 :frog: :heart: --- linux-tkg-config/prepare | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index d22fa56..3e3925c 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -344,7 +344,7 @@ _tkg_srcprep() { echo "" > localversion.20-pkgname # add upstream patch - if [ "$_sub" != "0" ]; then + if [ "$_sub" != "0" ] && [[ "$_sub" != rc* ]]; then msg2 "Patching from $_basekernel to $pkgver" if [ ! -e "$srcdir/patch-${pkgver}" ]; then ( cd "$_where" && xz -dk patch-${pkgver}.xz && mv "$_where"/patch-${pkgver} "$srcdir"/ )