Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2016-11-10 22:06:17 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2016-11-10 22:06:32 +0300
commite47a080e98bd884aab57e6137c0eb3d58fbedaaa (patch)
tree43f2e5f1e4819b5e7ff49517daf8ce8e5cecf8dd
parent3a6f0d4b783476966161d0e34e1e10c02a2ad8f4 (diff)
Suppress package counts when they are zero
-rwxr-xr-xcalm/calm.py6
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