From aa42c6a8e36784aeffdc2b53d79c03397c88fa90 Mon Sep 17 00:00:00 2001 From: Archlinux-Jerry Build Bot Date: Thu, 7 Nov 2019 00:25:42 +0800 Subject: [PATCH] change: linux-phicomm-n1 update hook --- linux-phicomm-n1/buildbot.update.d/update.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/linux-phicomm-n1/buildbot.update.d/update.sh b/linux-phicomm-n1/buildbot.update.d/update.sh index f778990..99252dc 100755 --- a/linux-phicomm-n1/buildbot.update.d/update.sh +++ b/linux-phicomm-n1/buildbot.update.d/update.sh @@ -20,9 +20,11 @@ pkgver=$(source $PKGBUILD; echo $pkgver) newPkgVer() { # do not print anything to stdout other than new pkgver here - URL='https://cdn.kernel.org/pub/linux/kernel/v5.x/' + #URL='https://cdn.kernel.org/pub/linux/kernel/v5.x/' + URL='https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git' VER=$pkgver - CHANGELOG_FORMAT="patch-" + #CHANGELOG_FORMAT="patch-" + CHANGELOG_FORMAT="Linux " PATCH=${VER##*.} MAJOR_MINOR=${VER%.*} @@ -33,9 +35,10 @@ newPkgVer() { html="$(curl -s ${URL})" next=$PATCH - [ $next == 0 ] && next=1 + #[ $next == 0 ] && next=1 + ((next=next+1)) while true; do - if grep -Fq "${MAJOR_MINOR}.${next}" <<< "$html"; then + if grep -Fq "${CHANGELOG_FORMAT}${MAJOR_MINOR}.${next}" <<< "$html"; then ((next=next+1)) else ((next=next-1))