mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 14:43:52 +02:00
update_check: add pypi link, strip kf6- prefix
This commit is contained in:
parent
9a0ecaa44b
commit
d218f45bf7
1 changed files with 6 additions and 4 deletions
|
@ -11,7 +11,9 @@ update_check() {
|
||||||
local curlargs=(
|
local curlargs=(
|
||||||
-A "xbps-src-update-check/$XBPS_SRC_VERSION"
|
-A "xbps-src-update-check/$XBPS_SRC_VERSION"
|
||||||
--max-time 10 --compressed -Lsk
|
--max-time 10 --compressed -Lsk
|
||||||
)
|
)
|
||||||
|
|
||||||
|
pkgname=${pkgname#kf6-}
|
||||||
|
|
||||||
# XBPS_UPDATE_CHECK_VERBOSE is the old way to show verbose messages
|
# XBPS_UPDATE_CHECK_VERBOSE is the old way to show verbose messages
|
||||||
[ "$XBPS_UPDATE_CHECK_VERBOSE" ] && XBPS_VERBOSE="$XBPS_UPDATE_CHECK_VERBOSE"
|
[ "$XBPS_UPDATE_CHECK_VERBOSE" ] && XBPS_VERBOSE="$XBPS_UPDATE_CHECK_VERBOSE"
|
||||||
|
@ -67,7 +69,7 @@ update_check() {
|
||||||
*code.google.com*|*googlecode*|\
|
*code.google.com*|*googlecode*|\
|
||||||
*launchpad.net*|\
|
*launchpad.net*|\
|
||||||
*cpan.*|\
|
*cpan.*|\
|
||||||
*pythonhosted.org*|\
|
*pythonhosted.org*|*pypi.org/project/*|\
|
||||||
*github.com*|\
|
*github.com*|\
|
||||||
*//gitlab.*|\
|
*//gitlab.*|\
|
||||||
*bitbucket.org*|\
|
*bitbucket.org*|\
|
||||||
|
@ -129,10 +131,10 @@ update_check() {
|
||||||
url="https://launchpad.net/$pkgurlname/+download";;
|
url="https://launchpad.net/$pkgurlname/+download";;
|
||||||
*cpan.*)
|
*cpan.*)
|
||||||
pkgname=${pkgname#perl-};;
|
pkgname=${pkgname#perl-};;
|
||||||
*pythonhosted.org*)
|
*pythonhosted.org*|*pypi.org/project/*)
|
||||||
pkgname=${pkgname#python-}
|
pkgname=${pkgname#python-}
|
||||||
pkgname=${pkgname#python3-}
|
pkgname=${pkgname#python3-}
|
||||||
rx="(?<=${pkgname//-/[-_]}-)[0-9.]+(post[0-9]*)?(?=(([.]tar|-cp|-py[0-9]+-none)))"
|
rx="(?<=${pkgname//-/[-_]}-)[0-9.]+(post[0-9]*)?(?=(([.]tar|-cp|-py)))"
|
||||||
url="https://pypi.org/simple/$pkgname";;
|
url="https://pypi.org/simple/$pkgname";;
|
||||||
*github.com*)
|
*github.com*)
|
||||||
pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)"
|
pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)"
|
||||||
|
|
Loading…
Add table
Reference in a new issue