aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMax Howell2009-09-27 23:55:40 +0100
committerMax Howell2009-09-28 00:20:51 +0100
commit1004df181ec8ff14d9802533afd6614cefb9890b (patch)
tree0972079cef3bdb25211f8710c04283697f1b1ae1 /bin
parentfab877de187fe2729ea7331b8b453d735972e22b (diff)
downloadbrew-1004df181ec8ff14d9802533afd6614cefb9890b.tar.bz2
fix_PATH changed to warn_about_macports_or_fink
We shouldn't mess with the user's PATH anyway. So assume our users are smart and just warn them about potential issues instead.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew7
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/brew b/bin/brew
index 00a7e4391..85c2e1b33 100755
--- a/bin/brew
+++ b/bin/brew
@@ -12,11 +12,6 @@ if %w[/ /usr].include? HOMEBREW_PREFIX.to_s then abort <<-EOS
EOS
end
-# remove MacPorts and Fink from the PATH, this prevents issues like:
-# http://github.com/mxcl/homebrew/issues/#issue/13
-# http://github.com/mxcl/homebrew/issues/#issue/48
-fix_PATH
-
if MACOS_VERSION < 10.5
onoe "Homebrew currently requires Leopard or higher"
abort "Sorry about that, but thanks for your interest anyway!"
@@ -95,6 +90,8 @@ begin
raise "Interactive mode can only be used with one formula argument"
end
+ warn_about_macports_or_fink # keep warning before dependency resolution
+
unless ARGV.force?
unless system "/usr/bin/which -s #{ENV.cc}"
raise "We cannot find a c compiler, have you installed the latest Xcode?"