[yocto] [PATCH 03/11][auh] upgradehelper.py: Use settings.from as email for commits.

Aníbal Limón anibal.limon at linux.intel.com
Wed Jun 10 09:28:44 PDT 2015


[YOCTO #7489]

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

diff --git a/upgradehelper.py b/upgradehelper.py
index 6af79a0..4a07d7b 100755
--- a/upgradehelper.py
+++ b/upgradehelper.py
@@ -148,10 +148,8 @@ class Updater(object):
         self.bb = Bitbake(get_build_dir())
         self.buildhistory = BuildHistory(get_build_dir())
         self.git = None
-        if send_email:
-            self.author = "Upgrade Helper <uh at not.set>"
-        else:
-            self.author = None
+        self.author_email = settings.get('from', 'uh at not.set')
+        self.author = "Upgrade Helper <%s>" % self.author_email
         self.skip_compilation = skip_compilation
         self.interactive = not auto_mode
         self.send_email = send_email
-- 
1.8.4.5




More information about the yocto mailing list