[Python-checkins] CVS: distutils/distutils/command sdist.py,1.23,1.24

Greg Ward python-dev@python.org
Sun, 4 Jun 2000 08:12:53 -0700


Update of /cvsroot/python/distutils/distutils/command
In directory slayer.i.sourceforge.net:/tmp/cvs-serv19483

Modified Files:
	sdist.py 
Log Message:
Use 'ensure_string_list()' for 'formats' option, so that it can be
spelled sensibly in a config file.

Index: sdist.py
===================================================================
RCS file: /cvsroot/python/distutils/distutils/command/sdist.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -r1.23 -r1.24
*** sdist.py	2000/06/01 01:10:56	1.23
--- sdist.py	2000/06/04 15:12:51	1.24
***************
*** 5,9 ****
  # created 1999/09/22, Greg Ward
  
! __revision__ = "$Id: sdist.py,v 1.23 2000/06/01 01:10:56 gward Exp $"
  
  import sys, os, string, re
--- 5,9 ----
  # created 1999/09/22, Greg Ward
  
! __revision__ = "$Id: sdist.py,v 1.24 2000/06/04 15:12:51 gward Exp $"
  
  import sys, os, string, re
***************
*** 74,77 ****
--- 74,78 ----
              self.template = "MANIFEST.in"
  
+         self.ensure_string_list('formats')
          if self.formats is None:
              try:
***************
*** 81,86 ****
                        "don't know how to create source distributions " + \
                        "on platform %s" % os.name
-         elif type (self.formats) is StringType:
-             self.formats = string.split (self.formats, ',')
  
          bad_format = check_archive_formats (self.formats)
--- 82,85 ----