mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
small refactor
This commit is contained in:
parent
78ea65f7fc
commit
f3743b15a3
1 changed files with 8 additions and 15 deletions
|
@ -326,19 +326,12 @@ class AppAutoUpdater:
|
|||
for release in releases
|
||||
if release["tag_name"] == latest_version_orig
|
||||
][0]
|
||||
if "github" in strategy or "gitlab" in strategy:
|
||||
latest_assets = {
|
||||
a["name"]: a["browser_download_url"]
|
||||
for a in latest_release["assets"]
|
||||
if not a["name"].endswith(".md5")
|
||||
}
|
||||
elif "gitea" in strategy or "forgejo" in strategy:
|
||||
latest_assets = {
|
||||
a["name"]: a["browser_download_url"]
|
||||
for a in latest_release["assets"]
|
||||
if not a["name"].endswith(".md5")
|
||||
}
|
||||
if latest_assets == "":
|
||||
if ("gitea" in strategy or "forgejo" in strategy) and latest_assets == "":
|
||||
# if empty (so only the base asset), take the tarball_url
|
||||
latest_assets = latest_release["tarball_url"]
|
||||
if strategy == "_release":
|
||||
|
|
Loading…
Add table
Reference in a new issue