Permalink
Browse files

python: tighten '2to3' check

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information...
1 parent fd53890 commit 581ccf4f87ba477ebf8d5d5f77bab3e484d24f79 @jacknagel jacknagel committed Aug 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Library/Formula/python.rb
@@ -116,7 +116,7 @@ def install
# 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

0 comments on commit 581ccf4

Please sign in to comment.