1
0
Fork 0

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 519c02ba21
commit aecc001bc4

View file

@ -241,7 +241,7 @@ class AppAutoUpdater:
def get_latest_version_and_asset(self, strategy, asset, infos, source): 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: if "github" in strategy:
assert upstream and upstream.startswith( assert upstream and upstream.startswith(