aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2012-08-14 15:22:04 -0500
committerJack Nagel2012-08-14 15:22:17 -0500
commite07689c479a5ed2439672e8875e847e1506fc763 (patch)
tree78e70284536bf983ae7f2f824508fbaf4c8a4e55 /Library/Formula
parent581ccf4f87ba477ebf8d5d5f77bab3e484d24f79 (diff)
downloadhomebrew-e07689c479a5ed2439672e8875e847e1506fc763.tar.bz2
python3: tighten '2to3' check
Fixes #14179. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/python3.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb
index f177d0066..abfce4ca9 100644
--- a/Library/Formula/python3.rb
+++ b/Library/Formula/python3.rb
@@ -113,7 +113,7 @@ class Python3 < Formula
ln_s "#{bin}/python3.2", "#{bin}/python3" unless (bin/"python3").exist?
# Python 2 has a 2to3, too. (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