Fix archlinux mirror url regexp
This commit is contained in:
parent
6dd5412956
commit
971fb9efa4
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue