public inbox for cygwin-apps-cvs@sourceware.org help / color / mirror / Atom feed
From: Jon TURNEY <jturney@sourceware.org> To: cygwin-apps-cvs@sourceware.org Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20210408-16-ga478607 Date: Thu, 20 May 2021 14:03:10 +0000 (GMT) [thread overview] Message-ID: <20210520140310.BCD863857C68@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=a478607b1706a2184090e31ba74ce0569333cd06 commit a478607b1706a2184090e31ba74ce0569333cd06 Author: Jon Turney <jon.turney@dronecode.org.uk> Date: Thu May 20 14:56:07 2021 +0100 Have irkerd send our messages to libera.chat as well https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=79d4099c2d6a4000302bdb1662dd4c8b1661dac9 commit 79d4099c2d6a4000302bdb1662dd4c8b1661dac9 Author: Jon Turney <jon.turney@dronecode.org.uk> Date: Thu May 20 14:55:25 2021 +0100 Allow 'orphaned package maintainers' to run untest on them Diff: --- calm/irk.py | 22 +++++++++++++--------- calm/untest.py | 2 +- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/calm/irk.py b/calm/irk.py index 5dd195d..40986b9 100755 --- a/calm/irk.py +++ b/calm/irk.py @@ -12,7 +12,7 @@ import socket import sys DEFAULT_SERVER = ("localhost", 6659) -DEFAULT_TARGET = 'cygwin-bots' +DEFAULT_TARGET = ['cygwin-bots', 'irc://irc.libera.chat/cygwin-bots'] def connect(server=DEFAULT_SERVER): @@ -26,16 +26,20 @@ def send(s, target, message): def irk(message, target=DEFAULT_TARGET, server=DEFAULT_SERVER): - try: - s = connect(server) - if "irc:" not in target and "ircs:" not in target: - target = "irc://chat.freenode.net/{0}".format(target) + if not isinstance(target, list): + target = [target] + + for t in target: + try: + s = connect(server) + if "irc:" not in t and "ircs:" not in t: + t = "irc://chat.freenode.net/{0}".format(t) - send(s, target, message) + send(s, t, message) - s.close() - except OSError: - pass + s.close() + except OSError: + pass def main(): diff --git a/calm/untest.py b/calm/untest.py index b749c15..48a3446 100644 --- a/calm/untest.py +++ b/calm/untest.py @@ -45,7 +45,7 @@ def untest(pvr): cygname = os.environ['CYGNAME'] mlist = {} - mlist = maintainers.add_packages(mlist, common_constants.PKGMAINT) + mlist = maintainers.add_packages(mlist, common_constants.PKGMAINT, orphanMaint=common_constants.ORPHANMAINT) if cygname not in mlist: logging.error("'%s' is not a package maintainer" % (cygname))
reply other threads:[~2021-05-20 14:03 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=20210520140310.BCD863857C68@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).