Optimize SourceForge mirror
The current SourceForge mirror makes 5 redirects before reaching the final URL.
It will not work with less than 5
$ mr=https://sourceforge.net/projects/msys2/files/REPOS/MSYS2/x86_64
$ av=pacman-mirrors-20140201-1-any.pkg.tar.xz
$ wget --spider --max-redirect 1 $mr/$av
HTTP request sent, awaiting response... 301 Moved Permanently
1 redirections exceeded.
A change in mirror can reduce the redirects to 1
$ mr=http://downloads.sourceforge.net/project/msys2/REPOS/MSYS2/x86_64
$ av=pacman-mirrors-20140201-1-any.pkg.tar.xz
$ wget --spider --max-redirect 1 $mr/$av
HTTP request sent, awaiting response... 200 OK
Length: 1252 (1.2K) [application/octet-stream]
Remote file exists.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Maintainer: Ray Donnelly <mingwandroid@gmail.com>
|
||||
|
||||
pkgname=pacman-mirrors
|
||||
pkgver=20140201
|
||||
pkgver=20140524
|
||||
pkgrel=1
|
||||
pkgdesc="MSYS2 mirror list for use by pacman"
|
||||
arch=('any')
|
||||
@@ -11,9 +11,9 @@ groups=('base')
|
||||
source=(mirrorlist.msys
|
||||
mirrorlist.mingw32
|
||||
mirrorlist.mingw64)
|
||||
md5sums=('7254db57c1d304ba7a47d7fcf16f467d'
|
||||
'ef2c12657918563997004431bf671813'
|
||||
'15b6a209833feab06756a4db74bf4975')
|
||||
md5sums=('c08cbcd5539a99388c6ec162f7331740'
|
||||
'd18c01fac2cb60dcf17af2f0936b87c9'
|
||||
'5af9f29c7f433da91b0b1fb440f51852')
|
||||
|
||||
package() {
|
||||
mkdir -p $pkgdir/usr/etc/pacman.d
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
##
|
||||
## 32-bit Mingw-w64 repository mirrorlist
|
||||
## Changed on 2014-02-01
|
||||
## Changed on 2014-05-24
|
||||
##
|
||||
|
||||
## Primary
|
||||
Server = ftp://148.251.42.38/MINGW/i686
|
||||
|
||||
## Sourceforge.net
|
||||
Server = https://sourceforge.net/projects/msys2/files/REPOS/MINGW/i686
|
||||
Server = http://downloads.sourceforge.net/project/msys2/REPOS/MINGW/i686
|
||||
@@ -1,10 +1,10 @@
|
||||
##
|
||||
## 64-bit Mingw-w64 repository mirrorlist
|
||||
## Changed on 2014-02-01
|
||||
## Changed on 2014-05-24
|
||||
##
|
||||
|
||||
## Primary
|
||||
Server = ftp://148.251.42.38/MINGW/x86_64
|
||||
|
||||
## Sourceforge.net
|
||||
Server = https://sourceforge.net/projects/msys2/files/REPOS/MINGW/x86_64
|
||||
Server = http://downloads.sourceforge.net/project/msys2/REPOS/MINGW/x86_64
|
||||
@@ -1,10 +1,10 @@
|
||||
##
|
||||
## MSYS2 repository mirrorlist
|
||||
## Changed on 2014-02-01
|
||||
## Changed on 2014-05-24
|
||||
##
|
||||
|
||||
## Primary
|
||||
Server = ftp://148.251.42.38/MSYS2/$arch
|
||||
|
||||
## Sourceforge.net
|
||||
Server = https://sourceforge.net/projects/msys2/files/REPOS/MSYS2/$arch
|
||||
Server = http://downloads.sourceforge.net/project/msys2/REPOS/MSYS2/$arch
|
||||
Reference in New Issue
Block a user