aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-03-31 15:00:40 -0700
committerAdam Vandenberg2010-04-06 08:22:28 -0700
commit76dac059aca15fd20ae8aa7619441d63c18a07bb (patch)
tree2ed6497667139634123607fe113280613a39c6db /Library
parent71f9d74adf93dc8294c345f13036a1bb817ba06a (diff)
downloadbrew-76dac059aca15fd20ae8aa7619441d63c18a07bb.tar.bz2
Move port/fink check.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew_doctor.rb21
1 files changed, 12 insertions, 9 deletions
diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb
index edba244eb..06b3ce36f 100644
--- a/Library/Homebrew/brew_doctor.rb
+++ b/Library/Homebrew/brew_doctor.rb
@@ -16,6 +16,17 @@ def check_for_x11
end
end
+def check_for_other_package_managers
+ if macports_or_fink_installed?
+ puts "You have Macports or Fink installed. This can cause trouble."
+ puts "You don't have to uninstall them, but you may like to try temporarily"
+ puts "moving them away, eg."
+ puts
+ puts " sudo mv /opt/local ~/macports"
+ puts
+ end
+end
+
def brew_doctor
read, write = IO.pipe
@@ -31,15 +42,7 @@ def brew_doctor
puts
end
- if macports_or_fink_installed?
- puts "You have Macports or Fink installed. This can cause trouble."
- puts "You don't have to uninstall them, but you may like to try temporarily"
- puts "moving them away, eg."
- puts
- puts " sudo mv /opt/local ~/macports"
- puts
- end
-
+ check_for_other_package_managers
check_for_x11
exit! 0