Compare commits
No commits in common. "main" and "10.0.5" have entirely different histories.
@ -1,8 +0,0 @@
|
|||||||
---
|
|
||||||
name: "Do not use this issue tracker"
|
|
||||||
about: "Do not use this issue tracker"
|
|
||||||
title: "Do not use this issue tracker"
|
|
||||||
labels: []
|
|
||||||
---
|
|
||||||
|
|
||||||
Please report your issue on [`coop-cloud/organising`](https://git.coopcloud.tech/coop-cloud/organising)
|
|
@ -139,11 +139,6 @@ def get_app_metadata(app_path):
|
|||||||
return metadata
|
return metadata
|
||||||
|
|
||||||
|
|
||||||
def get_cached_versions(cached_apps_json, app_name):
|
|
||||||
versions = cached_apps_json[app_name]["versions"]
|
|
||||||
return [list(k)[0] for k in [version.keys() for version in versions]]
|
|
||||||
|
|
||||||
|
|
||||||
def get_app_versions(app_path, cached_apps_json):
|
def get_app_versions(app_path, cached_apps_json):
|
||||||
versions = []
|
versions = []
|
||||||
|
|
||||||
@ -160,7 +155,7 @@ def get_app_versions(app_path, cached_apps_json):
|
|||||||
app_name = basename(app_path)
|
app_name = basename(app_path)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
existing_tags = get_cached_versions(cached_apps_json, app_name)
|
existing_tags = cached_apps_json[app_name]["versions"].keys()
|
||||||
except KeyError:
|
except KeyError:
|
||||||
existing_tags = []
|
existing_tags = []
|
||||||
|
|
||||||
@ -176,8 +171,9 @@ def get_app_versions(app_path, cached_apps_json):
|
|||||||
if service in ("null", "---"):
|
if service in ("null", "---"):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if tag in existing_tags and service in get_cached_versions(
|
if (
|
||||||
cached_apps_json, app_name
|
tag in existing_tags
|
||||||
|
and service in cached_apps_json[app_name]["versions"][tag]
|
||||||
):
|
):
|
||||||
log.info(f"Skipping {tag} because we've already processed it")
|
log.info(f"Skipping {tag} because we've already processed it")
|
||||||
existing_versions = cached_apps_json[app_name]["versions"][tag][service]
|
existing_versions = cached_apps_json[app_name]["versions"][tag][service]
|
||||||
@ -224,7 +220,7 @@ def main():
|
|||||||
skopeo_login()
|
skopeo_login()
|
||||||
|
|
||||||
repos_json = get_repos_json()
|
repos_json = get_repos_json()
|
||||||
# clone_all_apps(repos_json)
|
clone_all_apps(repos_json)
|
||||||
|
|
||||||
with open(args.output, "w", encoding="utf-8") as handle:
|
with open(args.output, "w", encoding="utf-8") as handle:
|
||||||
dump(
|
dump(
|
||||||
|
Reference in New Issue
Block a user