Use GitLab's API endpoint for fetching a git snapshot. (#7881)

* Use GitLab's API endpoint for fetching a git snapshot.

* More GitLab packages use the API.

* find_list_url for GitLab's API URLs.

* Flake8

* Url for 'hacckernels'.

* Check GitLab API regexps before the non-API ones.
This commit is contained in:
Sergey Kosukhin
2018-04-26 23:40:11 +02:00
committed by Adam J. Stewart
parent 8afdaa5805
commit 0f35f00b6e
11 changed files with 44 additions and 19 deletions

View File

@@ -33,7 +33,7 @@ class Libaec(CMakePackage):
"""
homepage = 'https://gitlab.dkrz.de/k202009/libaec'
url = 'https://gitlab.dkrz.de/k202009/libaec/repository/archive.tar.gz?ref=v1.0.2'
url = 'https://gitlab.dkrz.de/api/v4/projects/k202009%2Flibaec/repository/archive.tar.gz?sha=v1.0.2'
list_url = 'https://gitlab.dkrz.de/k202009/libaec/tags'
provides('szip')