aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2012-08-14 15:21:50 -0500
committerJack Nagel2012-08-14 15:21:50 -0500
commit581ccf4f87ba477ebf8d5d5f77bab3e484d24f79 (patch)
treedecf033060974ea878c6ecba2e1b3d5d526a7473
parentfd53890110b9291ca42491e6bfde016e945cca62 (diff)
downloadhomebrew-581ccf4f87ba477ebf8d5d5f77bab3e484d24f79.tar.bz2
python: tighten '2to3' check
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
-rw-r--r--Library/Formula/python.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb
index 804a6f6fd..ef677ff30 100644
--- a/Library/Formula/python.rb
+++ b/Library/Formula/python.rb
@@ -116,7 +116,7 @@ class Python < Formula
# Python 3 has a 2to3, too. Additionally there still is a 2to3-2.7.
# (https://github.com/mxcl/homebrew/issues/12581)
- rm bin/"2to3" if (HOMEBREW_PREFIX/"bin/2to3").exist?
+ rm bin/"2to3" if (HOMEBREW_PREFIX/"bin/2to3").exist? and (bin/"2to3").exist?
# Tell distutils-based installers where to put scripts
scripts_folder.mkpath