summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-04-26 01:12:40 (GMT)
committerGreg Ward <gward@python.net>2000-04-26 01:12:40 (GMT)
commit1b8e1d4c0dd1a1d738ffdac053446117f6d70656 (patch)
tree291557c838a4618469864b7126f5e00b5c10277e /Lib
parent14f3f59d2b510d0210f10804cb5f85df8278af8e (diff)
downloadcpython-1b8e1d4c0dd1a1d738ffdac053446117f6d70656.zip
cpython-1b8e1d4c0dd1a1d738ffdac053446117f6d70656.tar.gz
cpython-1b8e1d4c0dd1a1d738ffdac053446117f6d70656.tar.bz2
Harry Henry Gebel:
Fix 'sdist.write_manifest()' to respect the value of dry_run.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/command/sdist.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py
index 8d9a465..6791718 100644
--- a/Lib/distutils/command/sdist.py
+++ b/Lib/distutils/command/sdist.py
@@ -11,7 +11,8 @@ import fnmatch
from types import *
from glob import glob
from distutils.core import Command
-from distutils.util import newer, create_tree, remove_tree, native_path
+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
from distutils.errors import DistutilsExecError, DistutilsOptionError
@@ -447,10 +448,9 @@ class sdist (Command):
by 'find_defaults()' and 'read_template()') to the manifest file
named by 'self.manifest'."""
- manifest = open (self.manifest, "w")
- for fn in self.files:
- manifest.write (fn + '\n')
- manifest.close ()
+ self.execute(write_file,
+ (self.manifest, self.files),
+ "writing manifest file")
# write_manifest ()