[Python-checkins] CVS: distutils/distutils/command sdist.py,1.16,1.17
Greg Ward
python-dev@python.org
Tue, 25 Apr 2000 21:12:45 -0400 (EDT)
Update of /projects/cvsroot/distutils/distutils/command
In directory newcnri:/tmp/cvs-serv22073/distutils/command
Modified Files:
sdist.py
Log Message:
Harry Henry Gebel:
Fix 'sdist.write_manifest()' to respect the value of dry_run.
Index: sdist.py
===================================================================
RCS file: /projects/cvsroot/distutils/distutils/command/sdist.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** sdist.py 2000/04/25 01:38:20 1.16
--- sdist.py 2000/04/26 01:12:40 1.17
***************
*** 5,9 ****
# created 1999/09/22, Greg Ward
! __revision__ = "$Id: sdist.py,v 1.16 2000/04/25 01:38:20 gward Exp $"
import sys, os, string, re
--- 5,9 ----
# created 1999/09/22, Greg Ward
! __revision__ = "$Id: sdist.py,v 1.17 2000/04/26 01:12:40 gward Exp $"
import sys, os, string, re
***************
*** 12,16 ****
from glob import glob
from distutils.core import Command
! from distutils.util import newer, create_tree, remove_tree, native_path
from distutils.archive_util import check_archive_formats
from distutils.text_file import TextFile
--- 12,17 ----
from glob import glob
from distutils.core import Command
! from distutils.util import newer, create_tree, remove_tree, native_path, \
! write_file
from distutils.archive_util import check_archive_formats
from distutils.text_file import TextFile
***************
*** 448,455 ****
named by 'self.manifest'."""
! manifest = open (self.manifest, "w")
! for fn in self.files:
! manifest.write (fn + '\n')
! manifest.close ()
# write_manifest ()
--- 449,455 ----
named by 'self.manifest'."""
! self.execute(write_file,
! (self.manifest, self.files),
! "writing manifest file")
# write_manifest ()