aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2013-08-05 15:05:02 -0700
committerAdam Vandenberg2013-08-05 15:05:02 -0700
commit5600713bbba68bf4aa27de8a88edc47ecef4e155 (patch)
treea5e85e1abad1ec10051efa1f7cbb020b5176205e
parent20986e3ff5121e267b2791c067b9acb673b6ed7a (diff)
downloadbrew-5600713bbba68bf4aa27de8a88edc47ecef4e155.tar.bz2
Add opensuse package search
-rw-r--r--Library/Contributions/manpages/brew.1.md4
-rw-r--r--Library/Homebrew/cmd/search.rb2
-rw-r--r--share/man/man1/brew.14
3 files changed, 6 insertions, 4 deletions
diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md
index 1abe84b00..a16859b07 100644
--- a/Library/Contributions/manpages/brew.1.md
+++ b/Library/Contributions/manpages/brew.1.md
@@ -269,8 +269,8 @@ 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` <text>:
- Search for <text> in MacPorts, Fink or Debian's package list.
+ * `search --macports`|`--fink`|`--debian`|`--opensuse` <text>:
+ Search for <text> in the given package manager's list.
* `sh [--env=std]`:
Instantiate a Homebrew build environment. Uses our years-battle-hardened
diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb
index c3480c348..82d6bebe3 100644
--- a/Library/Homebrew/cmd/search.rb
+++ b/Library/Homebrew/cmd/search.rb
@@ -11,6 +11,8 @@ module Homebrew extend self
exec_browser "http://pdb.finkproject.org/pdb/browse.php?summary=#{ARGV.next}"
elsif ARGV.include? '--debian'
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 (query = ARGV.first).nil?
puts_columns Formula.names
else
diff --git a/share/man/man1/brew.1 b/share/man/man1/brew.1
index fb3a29f20..f0cef3a52 100644
--- a/share/man/man1/brew.1
+++ b/share/man/man1/brew.1
@@ -296,8 +296,8 @@ If \fB\-\-force\fR is passed, and there are multiple versions of \fIformula\fR i
Perform a substring search of formula names for \fItext\fR\. If \fItext\fR is surrounded with slashes, then it is interpreted as a regular expression\. If no search term is given, all available formula are displayed\.
.
.TP
-\fBsearch \-\-macports\fR|\fB\-\-fink\fR|\fB\-\-debian\fR \fItext\fR
-Search for \fItext\fR in MacPorts, Fink or Debian\'s package list\.
+\fBsearch \-\-macports\fR|\fB\-\-fink\fR|\fB\-\-debian\fR|\fB\-\-opensuse\fR \fItext\fR
+Search for \fItext\fR in the given package manager\'s list\.
.
.TP
\fBsh [\-\-env=std]\fR