From 7790a16034a45affb0e1e39a29ce245ccd771f3b Mon Sep 17 00:00:00 2001 From: Swann Date: Tue, 15 Jun 2021 14:51:37 +0200 Subject: [PATCH] fix: download the build artifact instead of the repository default zip Related to #195 --- multi_user/addon_updater.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/multi_user/addon_updater.py b/multi_user/addon_updater.py index b540759..d60ea02 100644 --- a/multi_user/addon_updater.py +++ b/multi_user/addon_updater.py @@ -1688,10 +1688,7 @@ class GitlabEngine(object): # Could clash with tag names and if it does, it will # download TAG zip instead of branch zip to get # direct path, would need. - return "{}{}{}".format( - self.form_repo_url(updater), - "/repository/archive.zip?sha=", - branch) + return f"https://gitlab.com/slumber/multi-user/-/jobs/artifacts/{branch}/download?job=build" def get_zip_url(self, sha, updater): return "{base}/repository/archive.zip?sha={sha}".format(