From 80886ff34a979e6aae3b0b04571230761c227109 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Mon, 14 Mar 2011 10:55:15 -0500 Subject: [PATCH] brew info should fetch remote formula info Signed-off-by: Adam Vandenberg --- Library/Homebrew/cmd/info.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index 89b9e900ef..ce66c6ef7f 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