From dcf33fcbf53947fd0ff4749f8b5df3ad792b8442 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 4 Jul 2026 20:30:11 -0700 Subject: [PATCH] scripts: dl_github_archive: fix zstd args passed to tar The multi-word zstd option '-I zstd -T0 --ultra -20' was appended as a single argv element. subprocess passes each list element as one argv entry, so tar received the whole string as one argument and failed to recognize it. Split into separate '-I' and 'zstd -T0 --ultra -20' elements so tar correctly interprets the compressor command. Signed-off-by: Rosen Penev Link: https://github.com/openwrt/openwrt/pull/24375 Signed-off-by: Jonas Jelonek --- scripts/dl_github_archive.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dl_github_archive.py b/scripts/dl_github_archive.py index 570ed3c6297..9eafaa86971 100755 --- a/scripts/dl_github_archive.py +++ b/scripts/dl_github_archive.py @@ -139,7 +139,7 @@ class Path(object): if ts is not None: args.append('--mtime=@%d' % ts) if into.endswith('.zst'): - args.append('-I zstd -T0 --ultra -20') + args += ['-I', 'zstd -T0 --ultra -20'] elif into.endswith('.xz'): envs['XZ_OPT'] = '-7e' args.append('-J') -- 2.47.3