xbps-src: update_check: set default url to PYPI for Python packages
This commit is contained in:
parent
c9f3010aab
commit
f417430e41
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue