Index: bdist_rpm.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/bdist_rpm.py,v
retrieving revision 1.37
diff -c -r1.37 bdist_rpm.py
*** bdist_rpm.py	19 Nov 2002 13:12:28 -0000	1.37
--- bdist_rpm.py	17 Sep 2003 20:33:24 -0000
***************
*** 199,205 ****
  
          self.ensure_string('distribution_name')
  
!         self.ensure_string('changelog')
            # Format changelog correctly
          self.changelog = self._format_changelog(self.changelog)
  
--- 199,207 ----
  
          self.ensure_string('distribution_name')
  
!         self.ensure_filename('changelog')
!         if self.changelog:
!             self.changelog = open(self.changelog).read()
            # Format changelog correctly
          self.changelog = self._format_changelog(self.changelog)
  
***************
*** 475,480 ****
--- 477,484 ----
          new_changelog = []
          for line in string.split(string.strip(changelog), '\n'):
              line = string.strip(line)
+             if not line:
+                 continue
              if line[0] == '*':
                  new_changelog.extend(['', line])
              elif line[0] == '-':

 	  	 

