From aecc001bc47d5287e2344d40af2ac72aa2579d62 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 4 Apr 2023 18:44:43 +0200 Subject: [PATCH] autoupdate app sources: some upstream repo have a trailing slash ... --- autoupdate_app_sources/autoupdate_app_sources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoupdate_app_sources/autoupdate_app_sources.py b/autoupdate_app_sources/autoupdate_app_sources.py index acff3e2..429d097 100644 --- a/autoupdate_app_sources/autoupdate_app_sources.py +++ b/autoupdate_app_sources/autoupdate_app_sources.py @@ -241,7 +241,7 @@ class AppAutoUpdater: def get_latest_version_and_asset(self, strategy, asset, infos, source): - upstream = infos.get("autoupdate", {}).get("upstream", self.main_upstream) + upstream = infos.get("autoupdate", {}).get("upstream", self.main_upstream).strip("/") if "github" in strategy: assert upstream and upstream.startswith(