[Python-checkins] CVS: distutils/distutils/command bdist_rpm.py,1.12,1.13
Greg Ward
python-dev@python.org
Thu, 8 Jun 2000 07:21:26 -0700
Update of /cvsroot/python/distutils/distutils/command
In directory slayer.i.sourceforge.net:/tmp/cvs-serv11106
Modified Files:
bdist_rpm.py
Log Message:
Harry Henry Gebel: fix '_format_changelog()' so it doesn't bomb if
passed None.
Index: bdist_rpm.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/command/bdist_rpm.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** bdist_rpm.py 2000/06/04 15:30:35 1.12
--- bdist_rpm.py 2000/06/08 14:21:23 1.13
***************
*** 437,440 ****
--- 437,442 ----
"""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'):