public inbox for cygwin-apps-cvs@sourceware.org help / color / mirror / Atom feed
From: Jon TURNEY <jturney@sourceware.org> To: cygwin-apps-cvs@sourceware.org Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20210626-10-g3d580a6 Date: Sat, 22 Jan 2022 20:08:22 +0000 (GMT) [thread overview] Message-ID: <20220122200822.9563B3858D37@sourceware.org> (raw) 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)
reply other threads:[~2022-01-22 20:08 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220122200822.9563B3858D37@sourceware.org \ --to=jturney@sourceware.org \ --cc=cygwin-apps-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).