diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Contributions/manpages/brew.1.md | 2 | ||||
| -rw-r--r-- | Library/Homebrew/cmd/search.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md index ac641368b..b9b50db65 100644 --- a/Library/Contributions/manpages/brew.1.md +++ b/Library/Contributions/manpages/brew.1.md @@ -269,7 +269,7 @@ Note that these flags should only appear after a command. surrounded with slashes, then it is interpreted as a regular expression. If no search term is given, all available formula are displayed. - * `search --debian`|`--fedora`|`--fink`|`--macports`|`--opensuse` <text>: + * `search --debian`|`--fedora`|`--fink`|`--macports`|`--opensuse`|`--ubuntu` <text>: Search for <text> in the given package manager's list. * `sh [--env=std]`: 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§ion=all" elsif (query = ARGV.first).nil? puts_columns Formula.names else |
