From 971fb9efa42aea783d09f57cddcb919bf5b4e2d5 Mon Sep 17 00:00:00 2001 From: Maurizio Porrato Date: Wed, 28 Sep 2022 08:59:38 +0100 Subject: [PATCH] Fix archlinux mirror url regexp --- distro/arch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distro/arch.go b/distro/arch.go index e5766e2..2881a16 100644 --- a/distro/arch.go +++ b/distro/arch.go @@ -22,7 +22,7 @@ func (d Arch) FetchMirrors(repos []string, repoMirrors chan<- RepoMirror, done * defer done.Done() // re := regexp.MustCompile(`^#*\s*Server\s*=\s*(\S+)\$repo/os/\$arch`) - re := regexp.MustCompile(`^#*\s*Server\s*=\s*(\S+?)[^/]+/os/[^/]+`) + re := regexp.MustCompile(`^#*\s*Server\s*=\s*(\S+?)[^/]+/os/[^/]+/?\s*$`) resp, err := http.Get("https://archlinux.org/mirrorlist/all/") if err != nil {