[yocto] [[AUH][PATCH] 5/6] upgradehelper.py: Add layer name to upgrade email subject

Aníbal Limón anibal.limon at linux.intel.com
Thu May 18 14:21:45 PDT 2017


[YOCTO #8962]

Signed-off-by: Aníbal Limón <anibal.limon at linux.intel.com>
---
 upgradehelper.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/upgradehelper.py b/upgradehelper.py
index 41f81c1..be4282f 100755
--- a/upgradehelper.py
+++ b/upgradehelper.py
@@ -440,7 +440,11 @@ class Updater(object):
 
         to_list = settings["status_recipients"].split()
 
-        subject = "[AUH] Upgrade status: " + date.isoformat(date.today())
+        if self.opts['layer_mode'] == 'yes':
+            subject = "[AUH] Upgrade status %s: %s" \
+                    % (self.opts['layer_name'], date.isoformat(date.today()))
+        else:
+            subject = "[AUH] Upgrade status: " + date.isoformat(date.today())
 
         if self.statistics.total_attempted:
             self.email_handler.send_email(to_list, subject, statistics_summary)
-- 
2.1.4




More information about the yocto mailing list