mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-10 13:05:46 +01:00
actually ignore stuff after the footer line
This commit is contained in:
parent
47edb69394
commit
25d8ffa0d9
@ -2443,7 +2443,7 @@ def read_meta_from_spec(specfile, *args):
|
|||||||
|
|
||||||
|
|
||||||
def edit_message(footer='', template=''):
|
def edit_message(footer='', template=''):
|
||||||
delim = '--This line, and those below, will be ignored--\n\n' + footer
|
delim = '--This line, and those below, will be ignored--\n'
|
||||||
import tempfile
|
import tempfile
|
||||||
(fd, filename) = tempfile.mkstemp(prefix = 'osc-commitmsg', suffix = '.diff')
|
(fd, filename) = tempfile.mkstemp(prefix = 'osc-commitmsg', suffix = '.diff')
|
||||||
f = os.fdopen(fd, 'w')
|
f = os.fdopen(fd, 'w')
|
||||||
@ -2451,6 +2451,8 @@ def edit_message(footer='', template=''):
|
|||||||
f.write(template)
|
f.write(template)
|
||||||
f.write('\n')
|
f.write('\n')
|
||||||
f.write(delim)
|
f.write(delim)
|
||||||
|
f.write('\n')
|
||||||
|
f.write(footer)
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
if sys.platform[:3] != 'win':
|
if sys.platform[:3] != 'win':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user