From: Rosen Penev Date: Sun, 5 Jul 2026 03:30:11 +0000 (-0700) Subject: scripts: dl_github_archive: fix zstd args passed to tar X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dcf33fcbf53947fd0ff4749f8b5df3ad792b8442;p=thirdparty%2Fopenwrt.git 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 --- 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')