aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJoshua Peek2011-03-14 10:55:15 -0500
committerAdam Vandenberg2011-03-14 10:18:39 -0700
commit474e6277bcb0b11a4dcb152357279f69a2a9947d (patch)
tree2c9f110ae758c5e47e56aea558e69e4f663df4fb /Library
parent6de7fd929c1c6e664c81692724646d55f3f9f045 (diff)
downloadhomebrew-474e6277bcb0b11a4dcb152357279f69a2a9947d.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.rb9
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