autoupdate app sources: some upstream repo have a trailing slash ...

This commit is contained in:
Alexandre Aubin 2023-04-04 18:44:43 +02:00
parent 05061a7ac5
commit 88d70749ac

View File

@ -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(