update_check: support pkgs.fedoraproject.org

This commit is contained in:
Đoàn Trần Công Danh 2021-06-10 09:14:25 +07:00
parent c3ddd7d685
commit e5626f81c7
1 changed files with 2 additions and 0 deletions

View File

@ -155,6 +155,8 @@ update_check() {
pkgurlname="$(printf %s "$url" | cut -d/ -f4,5)"
url="https://git.sr.ht/$pkgurlname/refs"
rx='/archive/(v?|\Q'"$pkgname"'\E-)?\K[\d.]+(?=\.tar\.gz")';;
*pkgs.fedoraproject.org*)
url="https://pkgs.fedoraproject.org/repo/pkgs/$pkgname" ;;
esac
fi