xbps-src: update_check: set default url to PYPI for Python packages
This commit is contained in:
parent
c9f3010aab
commit
f417430e41
@ -42,7 +42,8 @@ update_check() {
|
|||||||
*cpan.*)
|
*cpan.*)
|
||||||
pkgname=${pkgname#perl-};;
|
pkgname=${pkgname#perl-};;
|
||||||
*pypi.python.org*)
|
*pypi.python.org*)
|
||||||
pkgname=${pkgname#python-};;
|
pkgname=${pkgname#python-}
|
||||||
|
url="https://pypi.python.org/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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user