nad0005 OS X installer: "Update Shell Profile" script is not updated ANALYSIS The script used by the Python installer to update the user's shell script has a hard-coded version number. This script is also installed in the "/Applications/Python n.n" directory as "Update Shell Profile.command". The installer is not updating the version in the command so the wrong version of Python may be inserted into the user's shell path. SOLUTION Ensure that the build major version is auto-updated in both. APPLIES py3k, 3.0, trunk, 2.6 NOTE Patch is in two parts: patch-nad0005.txt (this file) py3k, 3.0, trunk, 2.6 and one of: patch-nad0005-py3k-30.txt py3k, 3.0 patch-nad0005-trunk.txt trunk patch-nad0005-26.txt 2.6 diff -r 95a3f06af3bf Mac/BuildScript/build-installer.py --- Mac/BuildScript/build-installer.py Thu Feb 12 00:39:09 2009 -0800 +++ Mac/BuildScript/build-installer.py Thu Feb 12 00:39:37 2009 -0800 @@ -1033,8 +1033,7 @@ buildPythonDocs() fn = os.path.join(WORKDIR, "_root", "Applications", "Python %s"%(getVersion(),), "Update Shell Profile.command") - patchFile("scripts/postflight.patch-profile", fn) - os.chmod(fn, 0755) + patchScript("scripts/postflight.patch-profile", fn) folder = os.path.join(WORKDIR, "_root", "Applications", "Python %s"%( getVersion(),))