mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-30 13:28:51 -06:00
chore: drop the unused large-files asset fetch
release.assets.fetch_assets had no caller: check_release reads release.check.fetch_assets, and check_release_assets reads fetch_release.
This commit is contained in:
1 parent
2f8f78b6b5
commit
d56c3e6e22
1 file changed
-12
@@ -287,15 +287,3 @@ def fetch_release() -> tuple[dict[str, int], str, dict[str, str]]:
|
|||||||
data.get("body", ""),
|
data.get("body", ""),
|
||||||
digests_of(data["assets"]),
|
digests_of(data["assets"]),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def fetch_assets() -> dict[str, int]:
|
|
||||||
"""Name and size of every asset of the large-files release."""
|
|
||||||
result = subprocess.run(
|
|
||||||
[
|
|
||||||
"gh", "release", "view", LARGE_FILES_RELEASE,
|
|
||||||
"-R", LARGE_FILES_REPO, "--json", "assets",
|
|
||||||
],
|
|
||||||
capture_output=True, text=True, check=True,
|
|
||||||
)
|
|
||||||
return {a["name"]: a["size"] for a in json.loads(result.stdout)["assets"]}
|
|
||||||
Reference in new issue
Block a user