Huh ? I suppose this get also written out to the file ? We do not want this. This would mean we loose informations in the changes files. We cut .changes when applying to the rpm %changes to avoid that the rpm database gross. But we definitily do not want to loose .changes log entries. please revert that bye adrian Am Sonntag, 9. Mai 2010, 21:39:00 schrieben Sie:
From: Marcus Huewe
--- osc/core.py | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/osc/core.py b/osc/core.py index b944618..e68c235 100644 --- a/osc/core.py +++ b/osc/core.py @@ -2508,12 +2508,17 @@ def run_editor(filename):
return subprocess.call([ editor, filename ])
-def edit_message(footer='', template=''): +def edit_message(footer='', template='', templatelen=30): delim = '--This line, and those below, will be ignored--\n' import tempfile (fd, filename) = tempfile.mkstemp(prefix = 'osc-commitmsg', suffix = '.diff') f = os.fdopen(fd, 'w') if template != '': + if not templatelen is None: + lines = template.splitlines() + template = '\n'.join(lines[:templatelen]) + if lines[templatelen:]: + footer = '%s\n\n%s' % ('\n'.join(lines[templatelen:]), footer) f.write(template) f.write('\n') f.write(delim)
-- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org