Skip to content

Commit 31d8f40

Browse files
committed
action: leave torrent URLs empty in per-image asset manifests
The build action ships images, .asc and .sha files alongside its artefacts but never produces a .torrent. Until now the manifest's file_url_torrent and redi_url_torrent fields still got constructed by appending '.torrent' to the file URL, so consumers of the manifest saw URLs that always 404. Return an empty string from signature_urls() for the torrent slot so both file_url_torrent and redi_url_torrent are empty in the per-image `<image>.assets.json`. The fields stay present for schema parity with the canonical armbian-images.json index — if torrents ever start being produced upstream, only the helper needs to change.
1 parent 21a4d0f commit 31d8f40

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

action.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -399,12 +399,16 @@ runs:
399399
400400
# ── URL composition ──────────────────────────────────────────────────
401401
def signature_urls(base):
402-
"""Return (base, base.asc, base.sha, base.torrent)."""
403-
return base, f"{base}.asc", f"{base}.sha", f"{base}.torrent"
402+
"""Return (base, base.asc, base.sha, ""). The build never
403+
produces a .torrent for the assets it ships, so the torrent
404+
slot is always empty — the field is kept for schema parity
405+
with the canonical armbian-images.json index.
406+
"""
407+
return base, f"{base}.asc", f"{base}.sha", ""
404408
405409
def build_urls(parsed, image_format, img_name):
406-
"""Compose file_url + redi_url (each with its .asc/.sha/.torrent
407-
siblings).
410+
"""Compose file_url + redi_url (each with its .asc/.sha
411+
siblings; torrent slot is always empty — see signature_urls).
408412
409413
Two URL shapes, selected by DOWNLOAD_REPO:
410414
non-empty -> {base}/{board}/{repo}/{filename} dl.armbian.com style

0 commit comments

Comments
 (0)