diff options
| author | Joshua Peek | 2011-03-14 10:55:15 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-14 10:18:39 -0700 |
| commit | 80886ff34a979e6aae3b0b04571230761c227109 (patch) | |
| tree | d1f3b7be2d5cdeb1d5e31bb3d3fc6304cc2c3f1b /Library | |
| parent | b02d25bccd6575c137a5f2e1021cd5eb6084170f (diff) | |
| download | brew-80886ff34a979e6aae3b0b04571230761c227109.tar.bz2 | |
brew info should fetch remote formula info
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/info.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index 89b9e900e..ce66c6ef7 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -12,14 +12,7 @@ module Homebrew extend self puts "#{HOMEBREW_CELLAR.children.length} kegs, #{HOMEBREW_CELLAR.abv}" end elsif valid_url ARGV[0] - path = Pathname.new(ARGV.shift) - /(.*?)[-_.]?#{path.version}/.match path.basename - unless $1.to_s.empty? - name = $1 - else - name = path.stem - end - puts "#{name} #{path.version}" + info_formula Formula.factory(ARGV.shift) else ARGV.formulae.each{ |f| info_formula f } end |
