[calm - Cygwin server-side packaging maintenance script] branch master, updated. 20210626-10-g3d580a6

Jon TURNEY via Cygwin-apps-cvs <[email protected]>
Newsgroups gmane.os.cygwin.cvs.apps
Message-ID <[email protected]>


https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=3d580a6eaeb6ee8490183f0f29d2cdb462863091

commit 3d580a6eaeb6ee8490183f0f29d2cdb462863091
Author: Jon Turney <[email protected]>
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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.