Commit 4ea6b39b authored by Greg Ward's avatar Greg Ward

Harry Henry Gebel: fix '_format_changelog()' so it doesn't bomb if

passed None.
parent 1e78c743
...@@ -436,6 +436,8 @@ class bdist_rpm (Command): ...@@ -436,6 +436,8 @@ class bdist_rpm (Command):
def _format_changelog(self, changelog): def _format_changelog(self, changelog):
"""Format the changelog correctly and convert it to a list of strings """Format the changelog correctly and convert it to a list of strings
""" """
if not changelog:
return changelog
new_changelog = [] new_changelog = []
for line in string.split(string.strip(changelog), '\n'): for line in string.split(string.strip(changelog), '\n'):
line = string.strip(line) line = string.strip(line)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment