diff options
author | Greg Ward <gward@python.net> | 1999-05-02 21:42:05 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 1999-05-02 21:42:05 (GMT) |
commit | 884df454b271cf8f433d36aa0613cf1c62288c8e (patch) | |
tree | aa80857d657ffb2e176136653549445cff77460e /Lib/distutils/core.py | |
parent | 0f72695da324d4cc24ebbeb4873c23d01f97f861 (diff) | |
download | cpython-884df454b271cf8f433d36aa0613cf1c62288c8e.zip cpython-884df454b271cf8f433d36aa0613cf1c62288c8e.tar.gz cpython-884df454b271cf8f433d36aa0613cf1c62288c8e.tar.bz2 |
The 'copy_file()' and 'copy_tree()' functions in util.py now have
meaningful return values: respectively, whether the copy was done, and
the list of files that were copied. This meant some trivial changes in
core.py as well: the Command methods that mirror 'copy_file()' and
'copy_tree()' have to pass on their return values.
Diffstat (limited to 'Lib/distutils/core.py')
-rw-r--r-- | Lib/distutils/core.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/distutils/core.py b/Lib/distutils/core.py index 980ba5b..4b8c783 100644 --- a/Lib/distutils/core.py +++ b/Lib/distutils/core.py @@ -636,10 +636,10 @@ class Command: preserve_mode=1, preserve_times=1, update=1, level=1): """Copy a file respecting verbose and dry-run flags.""" - util.copy_file (infile, outfile, - preserve_mode, preserve_times, - update, self.distribution.verbose >= level, - self.distribution.dry_run) + return util.copy_file (infile, outfile, + preserve_mode, preserve_times, + update, self.distribution.verbose >= level, + self.distribution.dry_run) def copy_tree (self, infile, outfile, @@ -648,10 +648,10 @@ class Command: """Copy an entire directory tree respecting verbose and dry-run flags.""" - util.copy_tree (infile, outfile, - preserve_mode, preserve_times, preserve_symlinks, - update, self.distribution.verbose >= level, - self.distribution.dry_run) + return util.copy_tree (infile, outfile, + preserve_mode,preserve_times,preserve_symlinks, + update, self.distribution.verbose >= level, + self.distribution.dry_run) def make_file (self, infiles, outfile, func, args, |