]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#1030250: correctly pass the dry_run option to the mkpath() function.
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Thu, 11 Dec 2008 00:03:42 +0000 (00:03 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Thu, 11 Dec 2008 00:03:42 +0000 (00:03 +0000)
Lib/distutils/ccompiler.py
Misc/NEWS

index 0ed9a40a35e29fd888846c91026abb065d882a4f..87d6e27396a25f4698f613b5835fb7a0809bd403 100644 (file)
@@ -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
index e964ced76bc5ca3cc7c1cf264e797555d30cadd9..9006fdfc299d2346f0fcef2b41367df5458c446c 100644 (file)
--- 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.