From: Robert Yang <liezhi.yang@windriver.com>
To: <yocto@yoctoproject.org>
Cc: paul.eggleton@linux.intel.com
Subject: [PATCH 09/12] upgradehelper.py: use git user in commit when recipes are specified
Date: Thu, 7 Dec 2017 15:37:14 +0800 [thread overview]
Message-ID: <348a1df0689fa954c0a8da46751bd5f9b0666b87.1512630627.git.liezhi.yang@windriver.com> (raw)
In-Reply-To: <cover.1512630627.git.liezhi.yang@windriver.com>
E.g.,:
$ upgradehelper.py less
commit d9b551438037e105eebabbbcb2da6d8b8cae7504
Author: Robert Yang <liezhi.yang@windriver.com>
Date: Wed Dec 6 16:38:55 2017 +0800
less: upgrade to 529
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
upgradehelper.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/upgradehelper.py b/upgradehelper.py
index ff27b97..0678c58 100755
--- a/upgradehelper.py
+++ b/upgradehelper.py
@@ -407,7 +407,11 @@ class Updater(object):
if 'recipe' in pkg_ctx:
I(" %s: Auto commit changes ..." % pkg_ctx['PN'])
- self.git.commit(pkg_ctx['recipe'].commit_msg, self.opts['author'])
+ commit_msg = pkg_ctx['recipe'].commit_msg
+ if self.recipes:
+ self.git.commit(commit_msg)
+ else:
+ self.git.commit(commit_msg, self.opts['author'])
stdout = self.git.create_patch(pkg_ctx['workdir'])
pkg_ctx['patch_file'] = stdout.strip()
--
2.7.4
next prev parent reply other threads:[~2017-12-07 7:38 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-07 7:37 [PATCH 00/12] [auh] make it easy to use by recipe maintainer Robert Yang
2017-12-07 7:37 ` [PATCH 01/12] upgradehelper.py: fix checking for do_checkpkg Robert Yang
2017-12-07 7:37 ` [PATCH 02/12] upgradehelper.py: support upgrade multiple recipes Robert Yang
2017-12-07 7:37 ` [PATCH 03/12] upgradehelper.py: use UniverseUpdater for all cases Robert Yang
2017-12-07 7:37 ` [PATCH 04/12] modules/steps.py: fix warn when skip compilation Robert Yang
2017-12-07 7:37 ` [PATCH 05/12] " Robert Yang
2017-12-07 12:47 ` Alexander Kanavin
2017-12-07 7:37 ` [PATCH 06/12] upgradehelper.py: only check email settings when -e is specified Robert Yang
2017-12-07 7:37 ` [PATCH 07/12] upgradehelper.py: always do upgrade when recipes are specified Robert Yang
2017-12-07 7:37 ` [PATCH 08/12] upgradehelper.py: clean repo only once " Robert Yang
2017-12-07 12:58 ` Alexander Kanavin
2017-12-08 1:43 ` Robert Yang
2017-12-08 2:00 ` Robert Yang
2017-12-08 14:18 ` Alexander Kanavin
2017-12-11 6:13 ` Robert Yang
2017-12-12 12:26 ` Alexander Kanavin
2017-12-13 1:16 ` Robert Yang
2017-12-13 13:18 ` Alexander Kanavin
2017-12-14 2:13 ` Robert Yang
2017-12-14 16:38 ` Alexander Kanavin
2017-12-15 13:35 ` Alexander Kanavin
2017-12-19 7:20 ` Robert Yang
2017-12-07 7:37 ` Robert Yang [this message]
2017-12-07 13:02 ` [PATCH 09/12] upgradehelper.py: use git user in commit " Alexander Kanavin
2017-12-08 1:51 ` Robert Yang
2017-12-08 14:07 ` Alexander Kanavin
2017-12-08 16:20 ` Burton, Ross
2017-12-11 6:14 ` Robert Yang
2017-12-07 7:37 ` [PATCH 10/12] upgradehelper.py: add --apply-failed option Robert Yang
2017-12-07 13:05 ` Alexander Kanavin
2017-12-08 2:02 ` Robert Yang
2017-12-07 7:37 ` [PATCH 11/12] upgradehelper.py: print info when recipe is skipped to upgrade Robert Yang
2017-12-07 7:37 ` [PATCH 12/12] upgradehelper.py: don't build gcc-runtime when --skip-compilation Robert Yang
2017-12-07 7:46 ` [PATCH 00/12] [auh] make it easy to use by recipe maintainer Robert Yang
2017-12-07 8:53 ` Alexander Kanavin
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=348a1df0689fa954c0a8da46751bd5f9b0666b87.1512630627.git.liezhi.yang@windriver.com \
--to=liezhi.yang@windriver.com \
--cc=paul.eggleton@linux.intel.com \
--cc=yocto@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.