Commit 360356c
json-generation: recognise .tar.(xz|gz|zst) in extract_file_extension
Currently the function falls through to the generic "${n##*.}" fallback
for tar-based image archives, returning just "xz" (or "gz"/"zst") as the
file_extension. Downstream consumers — notably armbian-router's map
loader — only add entries whose extension ends with img.xz or a
registered specialExtension, so all 3 Arduino UNO Q community images
distributed as .tar.xz silently disappear from the redirect map and
return 404.
Add explicit cases for .tar.xz / .tar.gz / .tar.zst so the generator
emits the full compound extension.
Refs: #277
Refs: armbian/armbian-router#391 parent 88dab0d commit 360356c
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
470 | 484 | | |
471 | 485 | | |
472 | 486 | | |
| |||
0 commit comments