mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-13 21:58:06 +04:00
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:
1 parent
7ea374a4c7
commit
dcf33fcbf5
1 file changed
+1
-1
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user