public inbox for cygwin-apps-cvs@sourceware.org help / color / mirror / Atom feed
From: jturney@sourceware.org To: cygwin-apps-cvs@sourceware.org Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20181020-16-g1393b82 Date: Mon, 27 May 2019 10:35:00 -0000 [thread overview] Message-ID: <20190527103541.55462.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=1393b8219a8019e3dbf6716fc73afc204ed9b215 commit 1393b8219a8019e3dbf6716fc73afc204ed9b215 Author: Jon Turney <jon.turney@dronecode.org.uk> Date: Sun May 26 12:03:19 2019 +0100 Write package metadata summary Write a summary of package metadata in json format. Diff: --- calm/calm.py | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/calm/calm.py b/calm/calm.py index 76ffd39..768003e 100755 --- a/calm/calm.py +++ b/calm/calm.py @@ -459,8 +459,14 @@ def do_output(args, state): logging.debug('writing %s' % (tmpfile.name)) with lzma.open(tmpfile, 'wt') as lzf: package.write_repo_json(args, state.packages, lzf) - logging.info("moving %s to %s" % (tmpfile.name, jsonfile)) - shutil.move(tmpfile.name, jsonfile) + logging.info("moving %s to %s" % (tmpfile.name, jsonfile)) + shutil.move(tmpfile.name, jsonfile) + + # make it world-readable, if we can + try: + os.chmod(jsonfile, 0o644) + except (OSError): + pass #
reply other threads:[~2019-05-27 10:35 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=20190527103541.55462.qmail@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).