From a6344566919ed57d5b884305dd727a63161dc39a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Wed, 17 Jan 2018 12:18:40 +0100 Subject: [PATCH] xbps-src: support gitlab in update-check Closes: #10928 [via git-merge-pr] --- common/xbps-src/shutils/update_check.sh | 4 ++++ srcpkgs/mdds/update | 2 -- srcpkgs/tint2/update | 2 -- 3 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 srcpkgs/mdds/update delete mode 100644 srcpkgs/tint2/update diff --git a/common/xbps-src/shutils/update_check.sh b/common/xbps-src/shutils/update_check.sh index 7e4a681912..1b9e0e4dde 100644 --- a/common/xbps-src/shutils/update_check.sh +++ b/common/xbps-src/shutils/update_check.sh @@ -48,6 +48,10 @@ update_check() { githubname="$(printf %s "$url" | cut -d/ -f4,5)" url="https://github.com/$githubname/tags" rx='/archive/(v?|\Q'"$pkgname"'\E-)?\K[\d\.]+(?=\.tar\.gz")';; + *gitlab.com*) + gitlabname="$(printf %s "$url" | cut -d/ -f4,5)" + url="https://gitlab.com/$gitlabname/tags" + rx='href="/\Q'$gitlabname'\E/repository/[^\d\.]*\K[\d\.]+(?=/archive\.tar\.gz")';; *bitbucket.org*) bbname="$(printf %s "$url" | cut -d/ -f4,5)" url="https://bitbucket.org/$bbname/downloads" diff --git a/srcpkgs/mdds/update b/srcpkgs/mdds/update deleted file mode 100644 index 83dff2050c..0000000000 --- a/srcpkgs/mdds/update +++ /dev/null @@ -1,2 +0,0 @@ -site="${homepage}/tags" -pattern="/tags/\K[\d.]+" diff --git a/srcpkgs/tint2/update b/srcpkgs/tint2/update deleted file mode 100644 index 2f54a53046..0000000000 --- a/srcpkgs/tint2/update +++ /dev/null @@ -1,2 +0,0 @@ -site="https://gitlab.com/o9000/tint2/tags" -pattern='tags\/v\K[^\d]*([\d\.]+)(?=")'