1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-26 12:12:11 +01:00

add .changes diff to commit message again

This commit is contained in:
Ludwig Nussel 2011-05-31 11:48:01 +02:00
parent 3dca0702c5
commit 651d66afab

View File

@ -5922,7 +5922,13 @@ def get_commit_message_template(pac):
""" """
diff = [] diff = []
template = [] template = []
files = [i for i in pac.todo if i.endswith('.changes') and pac.status(i) in ('A', 'M')]
if pac.todo:
todo = pac.todo
else:
todo = pac.filenamelist + pac.filenamelist_unvers
files = [i for i in todo if i.endswith('.changes') and pac.status(i) in ('A', 'M')]
for filename in files: for filename in files:
if pac.status(filename) == 'M': if pac.status(filename) == 'M':