Harry Henry Gebel:

Fix 'sdist.write_manifest()' to respect the value of dry_run.
This commit is contained in:
Greg Ward 2000-04-26 01:12:40 +00:00
parent 14f3f59d2b
commit 1b8e1d4c0d
1 changed files with 5 additions and 5 deletions

View File

@ -11,7 +11,8 @@ import fnmatch
from types import * from types import *
from glob import glob from glob import glob
from distutils.core import Command 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.archive_util import check_archive_formats
from distutils.text_file import TextFile from distutils.text_file import TextFile
from distutils.errors import DistutilsExecError, DistutilsOptionError from distutils.errors import DistutilsExecError, DistutilsOptionError
@ -447,10 +448,9 @@ class sdist (Command):
by 'find_defaults()' and 'read_template()') to the manifest file by 'find_defaults()' and 'read_template()') to the manifest file
named by 'self.manifest'.""" named by 'self.manifest'."""
manifest = open (self.manifest, "w") self.execute(write_file,
for fn in self.files: (self.manifest, self.files),
manifest.write (fn + '\n') "writing manifest file")
manifest.close ()
# write_manifest () # write_manifest ()