[Python-checkins] r45786 - python/trunk/Lib/distutils/util.py

georg.brandl python-checkins at python.org
Fri Apr 28 18:58:53 CEST 2006


Author: georg.brandl
Date: Fri Apr 28 18:58:52 2006
New Revision: 45786

Modified:
   python/trunk/Lib/distutils/util.py
Log:
Bug #1478326: don't allow '/' in distutils.util.get_platform machine names
since this value is used to name the build directory.


Modified: python/trunk/Lib/distutils/util.py
==============================================================================
--- python/trunk/Lib/distutils/util.py	(original)
+++ python/trunk/Lib/distutils/util.py	Fri Apr 28 18:58:52 2006
@@ -45,6 +45,7 @@
     osname = string.lower(osname)
     osname = string.replace(osname, '/', '')
     machine = string.replace(machine, ' ', '_')
+    machine = string.replace(machine, '/', '-')
 
     if osname[:5] == "linux":
         # At least on Linux/Intel, 'machine' is the processor --


More information about the Python-checkins mailing list