xbps-src: update-check: update PyPI URL here as well

This commit is contained in:
Alessio Sergi 2016-04-25 17:52:51 +02:00
parent 1dda7301a5
commit 8fc7bfb7d2

View File

@ -41,9 +41,9 @@ update_check() {
url="https://launchpad.net/$lpname/+download";; url="https://launchpad.net/$lpname/+download";;
*cpan.*) *cpan.*)
pkgname=${pkgname#perl-};; pkgname=${pkgname#perl-};;
*pypi.python.org*) *pypi.io*)
pkgname=${pkgname#python-} pkgname=${pkgname#python-}
url="https://pypi.python.org/simple/$pkgname";; url="https://pypi.io/simple/$pkgname";;
*github.com*) *github.com*)
githubname="$(printf %s "$url" | cut -d/ -f4,5)" githubname="$(printf %s "$url" | cut -d/ -f4,5)"
url="https://github.com/$githubname/tags" url="https://github.com/$githubname/tags"