public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20210626-10-g3d580a6
@ 2022-01-22 20:08 Jon TURNEY
0 siblings, 0 replies; only message in thread
From: Jon TURNEY @ 2022-01-22 20:08 UTC (permalink / raw)
To: cygwin-apps-cvs
https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=3d580a6eaeb6ee8490183f0f29d2cdb462863091
commit 3d580a6eaeb6ee8490183f0f29d2cdb462863091
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date: Sat Jan 22 20:04:17 2022 +0000
Leave stale sha512.sum in place to be recomputed by 'make-sha'
We can't replace sha512.sum atomically because it's owned by root, so
just leave it in place. 'make-sha' is smart enough to change it's
contents only when necessary.
Diff:
---
calm/calm.py | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/calm/calm.py b/calm/calm.py
index 731bb7b..cfc05dd 100755
--- a/calm/calm.py
+++ b/calm/calm.py
@@ -462,17 +462,6 @@ def do_output(args, state):
keys = ' '.join(['-u' + k for k in args.keys])
utils.system('/usr/bin/gpg ' + keys + ' --batch --yes -b ' + extfile)
- # recompute checksums
- files = ['setup' + ext for ext in extensions] + ['setup' + ext + '.sig' for ext in extensions] + ['setup.ini.bak']
-
- hashfile = os.path.join(basedir, 'sha512.sum')
- with tempfile.NamedTemporaryFile(mode='w', delete=False) as tmphashfile:
- for fn in sorted(files):
- sha512 = package.sha512_file(os.path.join(basedir, fn))
- print('%s %s' % (sha512, fn), file=tmphashfile)
- logging.info("moving %s to %s" % (tmphashfile.name, hashfile))
- shutil.move(tmphashfile.name, hashfile)
-
else:
logging.debug("removing %s, unchanged %s" % (tmpfile.name, inifile))
os.remove(tmpfile.name)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-22 20:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-22 20:08 [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20210626-10-g3d580a6 Jon TURNEY
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).