10 Commits

Author SHA1 Message Date
Jonathan Hitchcock
de30a7844f 'brew doctor' provides bad example command
If there are multiple dependencies missing, 'brew doctor' can suggest
that you run something like:

  brew install autoconf libyaml autoconf, libyaml

This commit improves that output.

Closes Homebrew/homebrew#10720.

Signed-off-by: Max Howell <max@methylblue.com>
2012-03-06 15:38:33 +00:00
Jack Nagel
d9fdd401da missing: adjust to new ARGV.formulae behavior
Since 25aefdd ("don't complain if args are empty"), ARGV.formulae does
not raise an exception; `brew missing` was relying on that to determine
what set of formulae to act on. Fix this, and also a typo.

Fixes Homebrew/homebrew#10617.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-03-01 18:04:41 -06:00
Adam Vandenberg
1ff01a872e missing should not error if Cellar does not exist 2011-09-26 10:46:50 -07:00
Jack Nagel
560fb2dbcb brew-missing: use name accessor on Formula objects
Commit 00cd16f changed oudated_brews to return a list of Formula
objects rather than a list of lists containing formula information.

Now we must access the formula name by using the 'name' accessor rather
than an array index.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-18 15:03:37 -05:00
Adam Vandenberg
94a524cce3 brew missing: allow a formula argument
If a formula is given, it will be checked for missing deps.
The formula does not have to be installed first.

Without a formula list, still checks all installed brews.
2011-04-13 13:48:31 -07:00
Max Howell
768910283a Refactor the brew command into one file per command
The code was sucking. To the extent that maintenance was hard. It's a lot
easier to work with code that is sensibly split at sensible boundaries. So
now it is more like that.

But the refactor is minimal. Because we don't want you to have more merge
hell than absolutely necessary.

If you merge you will need to pay attention to brew.h.rb (as it is deleted)
and bin/brew (as command logic is gone). It will be painful, but you will just
have to help git out by moving any changes around manually.

Note compatibility.rb. It ensures that any function renames or removals don't
break anything. We're pretty serious about backwards compatibility. And that's
because we encourage you to hack around with the innards. And we couldn't do
that if we would then just make stuff disappear behind your back.
2011-03-12 11:55:02 -08:00
Adam Vandenberg
f708b0b81f brew-missing - don't count outdated as missing 2010-10-01 07:12:21 -07:00
Adam Vandenberg
c9e2a9e5cb Document 'brew missing'. 2010-08-15 15:25:35 -07:00
Adam Vandenberg
f5b66f2a04 Tweak brew missing 2010-08-15 15:23:43 -07:00
Adam Vandenberg
b877bc52d0 External command "brew missing"
This will print installed brews that are missing deps.
2010-08-15 15:11:09 -07:00