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. 20160705-35-ge47a080 Date: Thu, 10 Nov 2016 19:08:00 -0000 [thread overview] Message-ID: <20161110190816.130807.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=e47a080e98bd884aab57e6137c0eb3d58fbedaaa commit e47a080e98bd884aab57e6137c0eb3d58fbedaaa Author: Jon Turney <jon.turney@dronecode.org.uk> Date: Thu Nov 10 19:06:17 2016 +0000 Suppress package counts when they are zero Diff: --- calm/calm.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/calm/calm.py b/calm/calm.py index eaafe42..08410d1 100755 --- a/calm/calm.py +++ b/calm/calm.py @@ -213,10 +213,12 @@ def process(args): logging.debug("moving %s packages for maintainer %s" % (arch, name)) # process the move lists - logging.info("vaulting %d package(s) for arch %s, by request" % (len(scan_result[arch].to_vault), arch)) + if scan_result[arch].to_vault: + logging.info("vaulting %d package(s) for arch %s, by request" % (len(scan_result[arch].to_vault), arch)) uploads.move_to_vault(args, scan_result[arch].to_vault) uploads.remove(args, scan_result[arch].remove_success) - logging.info("adding %d package(s) for arch %s" % (len(scan_result[arch].to_relarea), arch)) + if scan_result[arch].to_relarea: + logging.info("adding %d package(s) for arch %s" % (len(scan_result[arch].to_relarea), arch)) uploads.move_to_relarea(m, args, scan_result[arch].to_relarea) # for each arch
reply other threads:[~2016-11-10 19: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=20161110190816.130807.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).