From 478a309acfccfc8c29fb765f027f8623382b9695 Mon Sep 17 00:00:00 2001 From: Archlinux-Jerry Build Bot Date: Fri, 10 Jan 2020 22:52:46 +0800 Subject: [PATCH] change: update hook for linux-phicomm-n1 --- linux-phicomm-n1/buildbot.update.d/update.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linux-phicomm-n1/buildbot.update.d/update.sh b/linux-phicomm-n1/buildbot.update.d/update.sh index 99252dc..750b7e4 100755 --- a/linux-phicomm-n1/buildbot.update.d/update.sh +++ b/linux-phicomm-n1/buildbot.update.d/update.sh @@ -21,7 +21,7 @@ newPkgVer() { # do not print anything to stdout other than new pkgver here #URL='https://cdn.kernel.org/pub/linux/kernel/v5.x/' - URL='https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git' + #URL='https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git' VER=$pkgver #CHANGELOG_FORMAT="patch-" CHANGELOG_FORMAT="Linux " @@ -29,6 +29,8 @@ newPkgVer() { PATCH=${VER##*.} MAJOR_MINOR=${VER%.*} + URL="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/?h=linux-${MAJOR_MINOR}.y" + if ! grep -Eq '[0-9].[0-9]' <<< "$MAJOR_MINOR"; then echo "Bad MAJOR_MINOR: ${MAJOR_MINOR}" >&2; return 1; fi if ! grep -Eq '[0-9]' <<< "$PATCH"; then echo "Bad PATCH: ${PATCH}" >&2; return 1; fi