update-check: better pattern for Python 3

This commit is contained in:
Đoàn Trần Công Danh 2024-04-23 08:08:22 +07:00 committed by Đoàn Trần Công Danh
parent d8e028c5ff
commit da20a0b55d
115 changed files with 1 additions and 123 deletions

View file

@ -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)"