From: Georg Brandl Date: Fri, 28 Apr 2006 16:58:52 +0000 (+0000) Subject: Bug #1478326: don't allow '/' in distutils.util.get_platform machine names X-Git-Tag: v2.5b1~773 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0f45a078a3fc17d7e7e0f798b0e3352e10f9dcd9;p=thirdparty%2FPython%2Fcpython.git Bug #1478326: don't allow '/' in distutils.util.get_platform machine names since this value is used to name the build directory. --- diff --git a/Lib/distutils/util.py b/Lib/distutils/util.py index 387e9bdc9300..061092b6734b 100644 --- a/Lib/distutils/util.py +++ b/Lib/distutils/util.py @@ -45,6 +45,7 @@ def get_platform (): 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 --