[Distutils] Traceback in bdist_rpm
Harry Henry Gebel
hgebel@inet.net
Thu, 8 Jun 2000 04:58:35 -0400
--tKW2IUtsqtDRztdT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Thu, Jun 08, 2000 at 10:25:14AM +0200, Bastian Kleineidam wrote:
> Reason is that the Command.ensure_string() function has default=None and
> so self.changelog is None and not "".
Okay, None is the correct, so I altered _format_changelog() so that if it
gets a false value it echos it back.
--
Harry Henry Gebel, Senior Developer, Landon House SBS ICQ# 76308382
West Dover Hundred, Delaware
--tKW2IUtsqtDRztdT
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="bdist_rpm.patch"
--- bdist_rpm.py.old Thu Jun 8 04:53:24 2000
+++ bdist_rpm.py Thu Jun 8 04:52:18 2000
@@ -471,6 +471,8 @@
def _format_changelog(self, changelog):
"""Format the changelog correctly and convert it to a list of strings
"""
+ if not changelog:
+ return changelog
new_changelog = []
for line in string.split(string.strip(changelog), '\n'):
line = string.strip(line)
--tKW2IUtsqtDRztdT--