diff options
| author | Max Howell | 2009-12-05 17:28:01 +0000 |
|---|---|---|
| committer | Max Howell | 2009-12-05 17:29:49 +0000 |
| commit | 54aff61ef61b90bd77577f02be62b09622c62cb5 (patch) | |
| tree | eab1ce6089306e7d7e97ce2e823d7a6afc370f73 /Library | |
| parent | a1583d1d3c53a533edf3f78cc2dda3d402e266b8 (diff) | |
| download | brew-54aff61ef61b90bd77577f02be62b09622c62cb5.tar.bz2 | |
Prompt user to use pip for Hg and Bzr
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brew.h.rb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 400602ad4..7ca9ecffb 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -24,6 +24,27 @@ FORMULA_META_FILES = %w[README ChangeLog COPYING LICENSE COPYRIGHT AUTHORS] PLEASE_REPORT_BUG = "#{Tty.white}Please report this bug at #{Tty.em}http://github.com/mxcl/homebrew/issues#{Tty.reset}" +def check_for_blacklisted_formula names + return if ARGV.force? + + names.each do |name| + case name + when 'bazaar', 'bzr' then abort <<-EOS +Bazaar can be installed thusly: + + brew install pip && pip install bzr==2.0.1 + + EOS + when 'mercurial', 'hg' then abort <<-EOS +Mercurial can be install thusly: + + brew install pip && pip install mercurial + + EOS + end + end +end + def __make url, name require 'formula' |
