public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20160705-35-ge47a080
@ 2016-11-10 19:08 jturney
  0 siblings, 0 replies; only message in thread
From: jturney @ 2016-11-10 19:08 UTC (permalink / raw)
  To: cygwin-apps-cvs




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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-11-10 19:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-10 19:08 [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20160705-35-ge47a080 jturney

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).