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. 20171008-25-gace76be Date: Mon, 13 Nov 2017 11:28:00 -0000 [thread overview] Message-ID: <20171113112836.16537.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=ace76beb8608ccc0b4d41bda921421af32f11f5f commit ace76beb8608ccc0b4d41bda921421af32f11f5f Author: Jon Turney <jon.turney@dronecode.org.uk> Date: Thu Nov 9 22:27:52 2017 +0000 Add the arch to the warning that files are being ignored https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=9d919ccf81bfd4532d06a2e1943d450cc2e050f7 commit 9d919ccf81bfd4532d06a2e1943d450cc2e050f7 Author: Jon Turney <jon.turney@dronecode.org.uk> Date: Thu Nov 9 20:21:03 2017 +0000 Log uploads once, rather than once for each arch Diff: --- calm/calm.py | 11 ++++++++--- calm/uploads.py | 2 +- 2 files changed, 9 insertions(+), 4 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) diff --git a/calm/uploads.py b/calm/uploads.py index dc95d48..679fb9a 100644 --- a/calm/uploads.py +++ b/calm/uploads.py @@ -259,7 +259,7 @@ def scan(m, all_packages, arch, args): # since we warned about files being ignored, warn again if ignored > 0 and m.reminders_issued: if (time.time() > (m.reminder_time + REMINDER_INTERVAL)): - logging.warning("ignored %d files as there is no !ready" % ignored) + logging.warning("ignored %d files in %s as there is no !ready" % (ignored, arch)) return ScanResult(error, packages, move, vault, remove, remove_success)
reply other threads:[~2017-11-13 11:28 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=20171113112836.16537.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).