From 240028cb771d286b39952357802483cf6a5d7e2e Mon Sep 17 00:00:00 2001 From: Amaury Forgeot d'Arc Date: Thu, 11 Dec 2008 00:03:42 +0000 Subject: [PATCH] #1030250: correctly pass the dry_run option to the mkpath() function. --- Lib/distutils/ccompiler.py | 2 +- Misc/NEWS | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Lib/distutils/ccompiler.py b/Lib/distutils/ccompiler.py index 0ed9a40a35e..87d6e27396a 100644 --- a/Lib/distutils/ccompiler.py +++ b/Lib/distutils/ccompiler.py @@ -1041,7 +1041,7 @@ main (int argc, char **argv) { return move_file (src, dst, dry_run=self.dry_run) def mkpath (self, name, mode=0777): - mkpath (name, mode, self.dry_run) + mkpath (name, mode, dry_run=self.dry_run) # class CCompiler diff --git a/Misc/NEWS b/Misc/NEWS index e964ced76bc..9006fdfc299 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -74,6 +74,9 @@ Core and Builtins Library ------- +- Issue #1030250: Distutils created directories even when run with the + --dry-run option. + - Issue #4483: _dbm module now builds on systems with gdbm & gdbm_compat libs.