mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-12 23:56:13 +01:00
- get_source_file_diff returns a list instead of a str
This commit is contained in:
parent
f5c5ee10d0
commit
d8723ef94a
@ -5170,7 +5170,7 @@ def get_commit_message_template(pac):
|
||||
"""
|
||||
Read the difference in .changes file(s) and put them as a template to commit message.
|
||||
"""
|
||||
diff = ""
|
||||
diff = []
|
||||
template = []
|
||||
files = [i for i in pac.todo if i.endswith('.changes') and pac.status(i) in ('A', 'M')]
|
||||
|
||||
@ -5184,7 +5184,7 @@ def get_commit_message_template(pac):
|
||||
f.close()
|
||||
|
||||
if diff:
|
||||
template = parse_diff_for_commit_message(diff)
|
||||
template = parse_diff_for_commit_message(''.join(diff))
|
||||
|
||||
return template
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user