update-melpa.el: update gitlab fetcher to use API URL

GitLab packages were not downloading because the archive URL's used were
invalid.  Following the [GitLab API Docs][0], use the correct GitLab
archive URL.  This change is mirrored in ttuegel/emacs2nix#57.

Signed-off-by: Kenny Ballou <kb@devnulllabs.io>
This commit is contained in:
Kenny Ballou 2021-04-23 09:32:44 -06:00
parent 46445cc334
commit 54a540c448

View File

@ -99,7 +99,10 @@ return Promise to resolve in that process."
("github" (list "nix-prefetch-url"
"--unpack" (concat "https://github.com/" repo "/archive/" commit ".tar.gz")))
("gitlab" (list "nix-prefetch-url"
"--unpack" (concat "https://gitlab.com/" repo "/repository/archive.tar.gz?ref=" commit)))
"--unpack" (concat "https://gitlab.com/api/v4/projects/"
(url-hexify-string repo)
"/repository/archive.tar.gz?ref="
commit)))
("bitbucket" (list "nix-prefetch-hg"
(concat "https://bitbucket.com/" repo) commit))
("hg" (list "nix-prefetch-hg"