xbps-src: update_check: set default url to PYPI for Python packages

This commit is contained in:
Alessio Sergi 2015-02-10 12:12:12 +01:00
parent c9f3010aab
commit f417430e41

View file

@ -42,7 +42,8 @@ update_check() {
*cpan.*)
pkgname=${pkgname#perl-};;
*pypi.python.org*)
pkgname=${pkgname#python-};;
pkgname=${pkgname#python-}
url="https://pypi.python.org/simple/$pkgname";;
*github.com*)
githubname="$(printf %s "$url" | cut -d/ -f4,5)"
url="https://github.com/$githubname/tags"