diff options
| author | Christian Marangi | 2024-03-25 10:00:38 +0000 |
|---|---|---|
| committer | Robert Marko | 2024-04-06 09:24:18 +0000 |
| commit | c922c780946ae522237f970991300cdcda20a3a7 (patch) | |
| tree | 2de258b7ddf31236c606aa9abdee88d1886b0008 | |
| parent | cce4124f426e5cf625e62be90810873bacabfeff (diff) | |
| download | openwrt-c922c780946ae522237f970991300cdcda20a3a7.tar.gz | |
scripts/dl_github_archive: add support for packing zstd archive
Add support for packing .zst archive when creating Github mirror tar.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
| -rwxr-xr-x | scripts/dl_github_archive.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/dl_github_archive.py b/scripts/dl_github_archive.py index 580b7cba38..744c441ca7 100755 --- a/scripts/dl_github_archive.py +++ b/scripts/dl_github_archive.py @@ -138,7 +138,11 @@ class Path(object): envs = os.environ.copy() if ts is not None: args.append('--mtime=@%d' % ts) - if into.endswith('.xz'): + if into.endswith('.zst'): + envs['ZSTD_CLEVEL'] = '20' + envs['ZSTD_NBTHREADS'] = '0' + args.append('--zstd') + elif into.endswith('.xz'): envs['XZ_OPT'] = '-7e' args.append('-J') elif into.endswith('.bz2'): |