aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-09 09:32:51 -0700
committerAdam Vandenberg2013-08-09 09:32:51 -0700
commitbcaa8235386b29bc1953333a4eb430df686d78f1 (patch)
tree52166013baa300371b2537dba4cacf0d2183db07 /Library
parentb1f394f8074c7343e72c20dd04ab8ae44b991ea4 (diff)
downloadbrew-bcaa8235386b29bc1953333a4eb430df686d78f1.tar.bz2
Add fedora to brew search
Diffstat (limited to 'Library')
-rw-r--r--Library/Contributions/manpages/brew.1.md2
-rw-r--r--Library/Homebrew/cmd/search.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md
index a16859b07..ac641368b 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 --macports`|`--fink`|`--debian`|`--opensuse` <text>:
+ * `search --debian`|`--fedora`|`--fink`|`--macports`|`--opensuse` <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 82d6bebe3..651534595 100644
--- a/Library/Homebrew/cmd/search.rb
+++ b/Library/Homebrew/cmd/search.rb
@@ -13,6 +13,8 @@ module Homebrew extend self
exec_browser "http://packages.debian.org/search?keywords=#{ARGV.next}&searchon=names&suite=all&section=all"
elsif ARGV.include? '--opensuse'
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 (query = ARGV.first).nil?
puts_columns Formula.names
else