Tighten the sub check to also skip RCs

Thanks to Iglu47 🐸 ❤️
This commit is contained in:
Tk-Glitch 2021-04-01 23:53:28 +02:00
parent 5917bde99f
commit fde290233a

View File

@ -344,7 +344,7 @@ _tkg_srcprep() {
echo "" > localversion.20-pkgname echo "" > localversion.20-pkgname
# add upstream patch # add upstream patch
if [ "$_sub" != "0" ]; then if [ "$_sub" != "0" ] && [[ "$_sub" != rc* ]]; then
msg2 "Patching from $_basekernel to $pkgver" msg2 "Patching from $_basekernel to $pkgver"
if [ ! -e "$srcdir/patch-${pkgver}" ]; then if [ ! -e "$srcdir/patch-${pkgver}" ]; then
( cd "$_where" && xz -dk patch-${pkgver}.xz && mv "$_where"/patch-${pkgver} "$srcdir"/ ) ( cd "$_where" && xz -dk patch-${pkgver}.xz && mv "$_where"/patch-${pkgver} "$srcdir"/ )