From 4107216ab3f6c06c65785eeab849bf75ed3cc55f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Fri, 16 Feb 2024 23:53:55 +0100 Subject: [PATCH] Gitlab replaces / with - in tag tarballs --- tools/autoupdate_app_sources/rest_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/autoupdate_app_sources/rest_api.py b/tools/autoupdate_app_sources/rest_api.py index 611544f0..6cf6d432 100644 --- a/tools/autoupdate_app_sources/rest_api.py +++ b/tools/autoupdate_app_sources/rest_api.py @@ -121,7 +121,8 @@ class GitlabAPI: def url_for_ref(self, ref: str, ref_type: RefType) -> str: name = self.project_path.split("/")[-1] - return f"{self.forge_root}/{self.project_path}/-/archive/{ref}/{name}-{ref}.tar.bz2" + clean_ref = ref.replace("/", "-") + return f"{self.forge_root}/{self.project_path}/-/archive/{ref}/{name}-{clean_ref}.tar.bz2" class GiteaForgejoAPI: