update-check: better pattern for Python 3
This commit is contained in:
parent
d8e028c5ff
commit
da20a0b55d
115 changed files with 1 additions and 123 deletions
|
@ -132,6 +132,7 @@ update_check() {
|
|||
*pythonhosted.org*)
|
||||
pkgname=${pkgname#python-}
|
||||
pkgname=${pkgname#python3-}
|
||||
rx="(?<=${pkgname//-/[-_]}-)[0-9.]+(post[0-9]*)?(?=(([.]tar|-cp|-py[0-9]+-none)))"
|
||||
url="https://pypi.org/simple/$pkgname";;
|
||||
*github.com*)
|
||||
pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue