aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-14 22:14:35 -0700
committerAdam Vandenberg2013-08-14 22:14:35 -0700
commit31348c34aeffe045181237cc393c177cfa6e08b4 (patch)
treeab0b19603ffebf4dddb80ff837c02fd333eb6ac7 /Library/Homebrew/cmd
parent124ddce2627d7205191e095d28d695e69da6c378 (diff)
downloadbrew-31348c34aeffe045181237cc393c177cfa6e08b4.tar.bz2
add ubuntu package search
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/search.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb
index 651534595..f18f21ca3 100644
--- a/Library/Homebrew/cmd/search.rb
+++ b/Library/Homebrew/cmd/search.rb
@@ -15,6 +15,8 @@ module Homebrew extend self
exec_browser "http://software.opensuse.org/search?q=#{ARGV.next}"
elsif ARGV.include? '--fedora'
exec_browser "https://admin.fedoraproject.org/pkgdb/acls/list/*#{ARGV.next}*"
+ elsif ARGV.include? '--ubuntu'
+ exec_browser "http://packages.ubuntu.com/search?keywords=#{ARGV.next}&searchon=names&suite=all&section=all"
elsif (query = ARGV.first).nil?
puts_columns Formula.names
else