From: "Alexander Kanavin" <alex.kanavin@gmail.com>
To: yocto@lists.yoctoproject.org
Cc: Alexander Kanavin <alex.kanavin@gmail.com>
Subject: [AUH][PATCH 2/2] upgradehelper: use a separate setting for CCing recipe upgrades
Date: Tue, 30 Jun 2020 11:09:11 +0200 [thread overview]
Message-ID: <20200630090911.8813-2-alex.kanavin@gmail.com> (raw)
In-Reply-To: <20200630090911.8813-1-alex.kanavin@gmail.com>
Previously it was same as status update recipients.
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
---
upgrade-helper.conf | 3 +++
upgradehelper.py | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/upgrade-helper.conf b/upgrade-helper.conf
index 98ef58f..e926300 100644
--- a/upgrade-helper.conf
+++ b/upgrade-helper.conf
@@ -31,6 +31,9 @@
# except when recipes are owned by specific maintainer_override entries above.
#global_maintainer_override=john.doe@doe.com
+# who should be CCd with all upgrade emails (optional)
+#cc_recipients=john.doe@doe.com
+
# who should get the status mail with statistics, at the end (optional)
#status_recipients=john.doe@doe.com
diff --git a/upgradehelper.py b/upgradehelper.py
index 061d18d..c2480f1 100755
--- a/upgradehelper.py
+++ b/upgradehelper.py
@@ -321,8 +321,8 @@ class Updater(object):
to_addr = pkg_ctx['MAINTAINER']
cc_addr = None
- if "status_recipients" in settings:
- cc_addr = settings["status_recipients"].split()
+ if "cc_recipients" in settings:
+ cc_addr = settings["cc_recipients"].split()
newversion = pkg_ctx['NPV'] if not pkg_ctx['NPV'].endswith("new-commits-available") else pkg_ctx['NSRCREV']
subject = "[AUH] " + pkg_ctx['PN'] + ": upgrading to " + newversion
--
2.27.0
prev parent reply other threads:[~2020-06-30 9:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-30 9:09 [AUH][PATCH 1/2] emailhandler: actually send messages to cc_list as well Alexander Kanavin
2020-06-30 9:09 ` Alexander Kanavin [this message]
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=20200630090911.8813-2-alex.kanavin@gmail.com \
--to=alex.kanavin@gmail.com \
--cc=yocto@lists.yoctoproject.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: link
Be 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