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 <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24375
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
This commit is contained in:
Rosen Penev authored and Jonas Jelonek committed 2026-07-28 09:30:22 +02:00
1 parent 7ea374a4c7
commit dcf33fcbf5
1 file changed
+1 -1
+1 -1
View File
@@ -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')