update-check: add gitlab.freedesktop.org

This commit is contained in:
Piotr Wójcik 2018-12-08 12:22:56 +01:00 committed by Helmut Pozimski
parent 80cbd2d4bb
commit 1bbbd55871
3 changed files with 2 additions and 5 deletions

View File

@ -48,7 +48,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.com*|*gitlab.gnome.org*|*gitlab.freedesktop.org*)
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")';;
@ -83,7 +83,7 @@ update_check() {
done | done |
tr _ . | tr _ . |
sort -Vu | sort -Vu |
{ {
grep . || echo "NO VERSION found for $original_pkgname" 1>&2 grep . || echo "NO VERSION found for $original_pkgname" 1>&2
} | } |
while IFS= read -r found_version; do while IFS= read -r found_version; do

View File

@ -1,2 +1 @@
site=https://gitlab.freedesktop.org/mesa/drm/tags
pkgname=drm-libdrm pkgname=drm-libdrm

View File

@ -1,2 +0,0 @@
site=https://gitlab.freedesktop.org/spice/spice-protocol/tags
pattern="v\K[\d\.]*(?=\.tar\.gz)"