From a6220f162c36f31c5fa1df8766a61c79e7a76163 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sun, 7 Apr 2019 21:06:14 +0200 Subject: use git2.archlinux32.org if git.archlinux32.org is down --- checkVersions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/checkVersions b/checkVersions index 5f74ffa09..d39bb6209 100755 --- a/checkVersions +++ b/checkVersions @@ -427,8 +427,12 @@ then grep -q '^git://anonscm\.debian\.org/\|^git\(+https\?\)\?://git\(hub\.com\|\.archlinux32\.org\)/.*#tag=' then src="${src#git+}" + src="${src%#*}" remVer=$( - git ls-remote --tags "${src%#*}" | \ + { + git ls-remote --tags "${src}" 2>/dev/null || \ + git ls-remote --tags "${src//git.archlinux32.org\/archlinux32\//git2.archlinux32.org/Archlinux32/}" 2>/dev/null + } | \ awk '{print $2}' | \ sed ' s|^refs/tags/'"$( -- cgit v1.2.3-70-g09d2