patches/Python25-04-distutils-log.diff
author laca
Wed, 27 Aug 2008 05:51:36 +0000
changeset 13290 93b9e959e744
permissions -rw-r--r--
2008-08-27 Laszlo (Laca) Peter <[email protected]> * SUNWPython25.spec: (new) spec file for Python 2.5.2 - PSARC/2008/543 * SUNWlibffi.spec: (new) spec file for libffi - PSARC/2008/542 * base-specs/libffi.spec: (new) base spec for libffi * copyright/SUNWPython25.copyright: (new) license/copyright file for Python 2.5.2 * copyright/SUNWlibffi.copyright: (new) license/copyright file for libffi 3.0.5 * patches/Python25-01-solaris-lib-dirs.diff: (new) Solaris build patch ported from Python 2.4.4 * patches/Python25-02-pycc.diff: (new) identical with Python 2.4.4's pycc.diff patch * patches/Python25-03-distutils-pycc.diff: (new) Python 2.4.4's distutils-pycc patch ported to 2.5.2 * patches/Python25-04-distutils-log.diff: (new) identical with Python 2.4.4's distutils-log.diff * patches/Python25-05-isalibs.diff: (new) Python 2.4.4's isalibs.diff ported to 2.5.2 * patches/Python25-06-write_compiled_module-atomic.diff: (new) Python 2.4.4's write_compiled_module-atomic.diff ported to 2.5.2 * patches/Python25-07-dtrace.diff: (new) dtrace probes patch ported to 2.5.2 * patches/Python25-08-ctypes.diff: (new) build patch for the ctypes module * patches/Python25-09-ucred.diff: (new) ucred module ported from 2.4.4 * patches/Python25-10-gethostname.diff: (new) patch that deletes the duplicate definition of gethostname from pyport.h, fixes 6614467 (Python bug 837046) * patches/libffi-01-__i386__.diff: (new) trivial build patch for libffi

--- Python-2.4.2/Lib/distutils/spawn.py	2004-11-10 14:23:14.000000000 -0800
+++ Python-2.4.2-new/Lib/distutils/spawn.py	2006-08-22 08:33:41.430344000 -0700
@@ -73,7 +73,7 @@
     if search_path:
         # either we find one or it stays the same
         executable = find_executable(executable) or executable
-    log.info(string.join([executable] + cmd[1:], ' '))
+    log.info("%s", string.join([executable] + cmd[1:], ' '))
     if not dry_run:
         # spawn for NT requires a full path to the .exe
         try:
@@ -98,7 +98,7 @@
     if search_path:
         # either we find one or it stays the same
         executable = find_executable(executable) or executable
-    log.info(string.join([executable] + cmd[1:], ' '))
+    log.info("%s", string.join([executable] + cmd[1:], ' '))
     if not dry_run:
         # spawnv for OS/2 EMX requires a full path to the .exe
         try:
@@ -119,7 +119,7 @@
                   verbose=0,
                   dry_run=0):
 
-    log.info(string.join(cmd, ' '))
+    log.info("%s", string.join(cmd, ' '))
     if dry_run:
         return
     exec_fn = search_path and os.execvp or os.execv