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>2017-11-09 23:21:03 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2017-11-09 23:21:03 +0300
commit9d919ccf81bfd4532d06a2e1943d450cc2e050f7 (patch)
tree5026be87b550742d32e244de2abdc45f3a10ef80
parent9282c36d3e680ee8c7e296fb1ecb43d84d45301b (diff)
Log uploads once, rather than once for each arch
-rwxr-xr-xcalm/calm.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/calm/calm.py b/calm/calm.py
index 6f2ae7f..120d9c8 100755
--- a/calm/calm.py
+++ b/calm/calm.py
@@ -247,9 +247,14 @@ def process_uploads(args, state):
for arch in common_constants.ARCHES:
# use merged package list
state.packages[arch] = merged_packages[arch]
- msg = "added %d (%s) + %d (noarch) + %d (src) packages from maintainer %s" % (len(scan_result[arch].packages), arch, len(scan_result['noarch'].packages), len(scan_result['src'].packages), name)
- logging.debug(msg)
- irk.irk(msg)
+
+ # report what we've done
+ added = []
+ for arch in common_constants.ARCHES + ['noarch', 'src']:
+ added.append('%d (%s)' % (len(scan_result[arch].packages), arch))
+ msg = "added %s packages from maintainer %s" % (' + '.join(added), name)
+ logging.debug(msg)
+ irk.irk(msg)
# record updated reminder times for maintainers
maintainers.Maintainer.update_reminder_times(mlist)