xbps-src: PYPI_SITE: use files.pythonhosted.org for less redirections

This commit is contained in:
Alessio Sergi 2016-05-13 17:35:35 +02:00
parent 2e288b4b8d
commit da4d9b7f23
3 changed files with 3 additions and 3 deletions

View file

@ -396,7 +396,7 @@ Example:
| KERNEL_SITE | http://www.kernel.org/pub/linux |
| MOZILLA_SITE | http://ftp.mozilla.org/pub |
| NONGNU_SITE | http://download.savannah.nongnu.org/releases |
| PYPI_SITE | https://pypi.io/packages/source |
| PYPI_SITE | https://files.pythonhosted.org/packages/source |
| SOURCEFORGE_SITE | http://downloads.sourceforge.net/sourceforge |
| UBUNTU_SITE | http://archive.ubuntu.com/ubuntu/pool |
| XORG_HOME | http://xorg.freedesktop.org/wiki/ |

View file

@ -13,7 +13,7 @@ GNOME_SITE="http://ftp.gnome.org/pub/GNOME/sources"
KERNEL_SITE="http://www.kernel.org/pub/linux"
#KERNEL_SITE="http://mirror.be.gbxs.net/pub/linux"
CPAN_SITE="http://cpan.perl.org/modules/by-module"
PYPI_SITE="https://pypi.io/packages/source"
PYPI_SITE="https://files.pythonhosted.org/packages/source"
MOZILLA_SITE="http://ftp.mozilla.org/pub"
GNU_SITE="http://ftp.gnu.org/gnu"
FREEDESKTOP_SITE="http://freedesktop.org/software"

View file

@ -41,7 +41,7 @@ update_check() {
url="https://launchpad.net/$lpname/+download";;
*cpan.*)
pkgname=${pkgname#perl-};;
*pypi.io*)
*pythonhosted.org*)
pkgname=${pkgname#python-}
url="https://pypi.io/simple/$pkgname";;
*github.com*)