aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2013-05-27 17:30:45 -0700
committerAdam Vandenberg2013-05-27 17:32:27 -0700
commit0e7d47332c31c93d431ee6b85b2255f7ca7bd1ce (patch)
tree80cafb16c1841ac69bb9885666c6b163e644e329
parent1a7ea33ba5b264d00a96349f361a76399c98ce17 (diff)
downloadbrew-0e7d47332c31c93d431ee6b85b2255f7ca7bd1ce.tar.bz2
Add `brew search --debian <f>`
-rw-r--r--Library/Contributions/brew_bash_completion.sh2
-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
4 files changed, 7 insertions, 5 deletions
diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh
index 56bdc84b4..19e7eb518 100644
--- a/Library/Contributions/brew_bash_completion.sh
+++ b/Library/Contributions/brew_bash_completion.sh
@@ -313,7 +313,7 @@ _brew_search ()
local cur="${COMP_WORDS[COMP_CWORD]}"
case "$cur" in
--*)
- __brewcomp "--fink --macports"
+ __brewcomp "--debian --fink --macports"
return
;;
esac
diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md
index 2ed67bd77..273dfa7b8 100644
--- a/Library/Contributions/manpages/brew.1.md
+++ b/Library/Contributions/manpages/brew.1.md
@@ -266,8 +266,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` <text>:
- Search for <text> on the MacPorts or Fink package search page.
+ * `search --macports`|`--fink`|`--debian` <text>:
+ Search for <text> in MacPorts, Fink or Debian's package 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 e86594253..15262addb 100644
--- a/Library/Homebrew/cmd/search.rb
+++ b/Library/Homebrew/cmd/search.rb
@@ -8,6 +8,8 @@ module Homebrew extend self
exec_browser "http://www.macports.org/ports.php?by=name&substr=#{ARGV.next}"
elsif ARGV.include? '--fink'
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"
else
query = ARGV.first
rx = case query
diff --git a/share/man/man1/brew.1 b/share/man/man1/brew.1
index 9a7c29064..b261fd9b4 100644
--- a/share/man/man1/brew.1
+++ b/share/man/man1/brew.1
@@ -293,8 +293,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 \fItext\fR
-Search for \fItext\fR on the MacPorts or Fink package search page\.
+\fBsearch \-\-macports\fR|\fB\-\-fink\fR|\fB\-\-debian\fR \fItext\fR
+Search for \fItext\fR in MacPorts, Fink or Debian\'s package list\.
.
.TP
\fBsh [\-\-env=std]\fR