Tighten the sub check to also skip RCs

Thanks to Iglu47 🐸 ❤️
master
Tk-Glitch 2021-04-01 23:53:28 +07:00
parent 5917bde99f
commit fde290233a
1 changed files with 1 additions and 1 deletions

@ -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"/ )