update-check: better pattern for Python 3
This commit is contained in:

committed by
Đoàn Trần Công Danh

parent
d8e028c5ff
commit
da20a0b55d
@@ -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)"
|
||||
|
Reference in New Issue
Block a user