Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
systemsmanagement:Uyuni:Utils
tito
0011-suse-changelog-format.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0011-suse-changelog-format.patch of Package tito
--- a/src/tito/tagger/susetagger.py 2021-09-10 14:53:50.302215181 +0200 +++ b/src/tito/tagger/susetagger.py 2021-09-13 10:28:06.469275751 +0200 @@ -67,19 +67,18 @@ else: output = self._generate_default_changelog(last_tag) - header = "-------------------------------------------------------------------\n" - header = header + "%s - %s\n\n" % (self.today, self.git_email) + header_separator = "-------------------------------------------------------------------\n" + header = header_separator + "%s - %s\n\n" % (self.today, self.git_email) out_f.write(header) - for cmd_out in output.split("\n"): - out_f.write("- ") - out_f.write("\n ".join(textwrap.wrap(cmd_out, 77))) - out_f.write("\n") - - out_f.write("\n") - + end_identation = False for line in in_f.readlines(): + if line == header_separator: + end_identation = True + if not end_identation: + line = re.sub('^\s\s', ' ', line) + line = re.sub('^- ', ' * ', line) out_f.write(line) out_f.flush()
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor