Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2020-03-01 23:18:17 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2020-06-07 19:07:07 +0300
commitf9774e4c02a87950752aebfc88184d75bfeffede (patch)
treec2d6753587c471a412af4109b54671028f87edf5
parent76e2feee7f88dbd7328dbe29929024f29f8171f6 (diff)
Add zstd compression of setup.ini
-rwxr-xr-xcalm/calm.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/calm/calm.py b/calm/calm.py
index 88ebdd7..adfface 100755
--- a/calm/calm.py
+++ b/calm/calm.py
@@ -448,7 +448,7 @@ def do_output(args, state):
irk.irk("calm updated setup.ini for arch '%s'" % (arch))
# compress and re-sign
- for ext in ['.ini', '.bz2', '.xz']:
+ for ext in ['.ini', '.bz2', '.xz', '.zst']:
extfile = os.path.join(basedir, 'setup' + ext)
try:
os.remove(extfile + '.sig')
@@ -459,6 +459,8 @@ def do_output(args, state):
utils.system('/usr/bin/bzip2 <%s >%s' % (inifile, extfile))
elif ext == '.xz':
utils.system('/usr/bin/xz -6e <%s >%s' % (inifile, extfile))
+ elif ext == '.zst':
+ utils.system('/usr/bin/zstd -q -f --ultra -20 %s -o %s' % (inifile, extfile))
keys = ' '.join(['-u' + k for k in args.keys])
utils.system('/usr/bin/gpg ' + keys + ' --batch --yes -b ' + extfile)