update-check: recognize all gitlab instances
This commit is contained in:
parent
fd377fe88a
commit
95e3a60feb
1 changed files with 4 additions and 3 deletions
|
@ -48,12 +48,13 @@ update_check() {
|
||||||
*cpan.*|\
|
*cpan.*|\
|
||||||
*pythonhosted.org*|\
|
*pythonhosted.org*|\
|
||||||
*github.com*|\
|
*github.com*|\
|
||||||
*gitlab.com*|*gitlab.gnome.org*|*gitlab.freedesktop.org*|\
|
*//gitlab.*|\
|
||||||
*bitbucket.org*|\
|
*bitbucket.org*|\
|
||||||
*ftp.gnome.org*|\
|
*ftp.gnome.org*|\
|
||||||
*kernel.org/pub/linux/kernel/*|\
|
*kernel.org/pub/linux/kernel/*|\
|
||||||
*cran.r-project.org/src/contrib*|\
|
*cran.r-project.org/src/contrib*|\
|
||||||
*rubygems.org*)
|
*rubygems.org*|\
|
||||||
|
*crates.io*)
|
||||||
continue
|
continue
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
@ -110,7 +111,7 @@ update_check() {
|
||||||
githubname="$(printf %s "$url" | cut -d/ -f4,5)"
|
githubname="$(printf %s "$url" | cut -d/ -f4,5)"
|
||||||
url="https://github.com/$githubname/tags"
|
url="https://github.com/$githubname/tags"
|
||||||
rx='/archive/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")';;
|
rx='/archive/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")';;
|
||||||
*gitlab.com*|*gitlab.gnome.org*|*gitlab.freedesktop.org*)
|
*//gitlab.*)
|
||||||
gitlaburl="$(printf %s "$url" | cut -d/ -f1-5)"
|
gitlaburl="$(printf %s "$url" | cut -d/ -f1-5)"
|
||||||
url="$gitlaburl/tags"
|
url="$gitlaburl/tags"
|
||||||
rx='/archive/[^/]+/\Q'"$pkgname"'\E-v?\K[\d\.]+(?=\.tar\.gz")';;
|
rx='/archive/[^/]+/\Q'"$pkgname"'\E-v?\K[\d\.]+(?=\.tar\.gz")';;
|
||||||
|
|
Loading…
Reference in a new issue