diff options
author | Ed Bartosh <eduard.bartosh@intel.com> | 2014-03-17 12:34:46 +0200 |
---|---|---|
committer | Ed Bartosh <eduard.bartosh@intel.com> | 2014-03-18 17:30:59 +0200 |
commit | 17f7b9eeb1a9f69e6b7efbd16f25310b51db7f5a (patch) | |
tree | 304cca4a7845b2889e308c8afe428d24315a6bf8 | |
parent | da000b4fa7dbe272d03c49cad994673d90e34579 (diff) | |
download | repa-17f7b9eeb1a9f69e6b7efbd16f25310b51db7f5a.tar.gz repa-17f7b9eeb1a9f69e6b7efbd16f25310b51db7f5a.tar.bz2 repa-17f7b9eeb1a9f69e6b7efbd16f25310b51db7f5a.zip |
Put commit id into the SR comment
Current implementation puts git tag as a commit id into the SR comment.
This change will make repa to use git_commit from the meta if it's
present there. Backend should be also modified to put git_commit into
meta: https://otctools.jf.intel.com/pm/issues/1732
Fixes: #1709
Change-Id: Iae01404652160fb4d86a1c0236e226b28773d225
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Reviewed-on: https://otctools.jf.intel.com/review/10664
Tested-by: OTC Tools Tester <ed.bartosh@linux.intel.com>
Reviewed-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rw-r--r-- | repa/common.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/repa/common.py b/repa/common.py index ac5b77d..f375582 100644 --- a/repa/common.py +++ b/repa/common.py @@ -77,11 +77,13 @@ def accept_or_reject(obs, submission, state, target, comment=''): # osc request accept [-m TEXT] ID print "submission %s" % str(name) + commit = meta.get('git_commit') or meta['git_tag'] + message = "Comments: %s \nGit project: %s\nTag: %s\nCommit: %s" \ % (comment or "submission %s" % str(name), meta['projects'][0], meta['git_tag'], - meta['git_tag']) + commit) for pkg in obs.get_source_packages(project): # Create SR |