diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-07-02 18:02:11 +0300 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-07-02 18:13:58 +0300 |
commit | 14de9b6ca66f689781ae1514c8c0e6a45520c05b (patch) | |
tree | dc615964d7bf23e0750b7ca3b49ce4297d7d231b | |
parent | ea9a3cf53f4e399c39a12270ff3b64c63dfecb69 (diff) | |
download | repa-14de9b6ca66f689781ae1514c8c0e6a45520c05b.tar.gz repa-14de9b6ca66f689781ae1514c8c0e6a45520c05b.tar.bz2 repa-14de9b6ca66f689781ae1514c8c0e6a45520c05b.zip |
Drop 'Commit' keyword from the submitrequest info
Commit is not used by anything and it doesn't make any sense for group
submissions (which have multiple commmits, one per project).
Change-Id: I3519017a68dec57e5319a5437379d1bc8cd75bb3
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
-rw-r--r-- | repa/common.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/repa/common.py b/repa/common.py index 0bd6ffd..d77ed70 100644 --- a/repa/common.py +++ b/repa/common.py @@ -87,18 +87,16 @@ 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'] submitter = meta.get('submitter') projects = '[' + ', '.join(meta['projects']) + ']' message = '' if submitter: message = "Submitter: %s\n" % submitter - message += "Comments: %s \nGit project: %s\nTag: %s\nCommit: %s" \ + message += "Comments: %s \nGit project: %s\nTag: %s" \ % (comment or "submission %s" % str(name), projects, - meta['git_tag'], - commit) + meta['git_tag']) # Create SR reqid = obs.create_sr(project, obs.get_source_packages(project), |