Files
tigerbrew/Library/Homebrew
Jack Nagel 30a08f5cc7 Don't attempt installation multiple times
When a dependency of a formula specified on the command-line is also
specified, *after* the dependent formula, installation proceeds as part
of the dependent's dependency tree and then is attempted again because
the user asked for it explicitly. This results in the installer raising
a CannotInstallFormulaError because it has already been installed.

For example:

  $ brew install graphviz pkg-config
  ==> Installing graphviz dependency: pkg-config
  ...
  ==> Installing graphviz
  ...
  Error: pkg-config-0.27.1 already installed

We already have a mechanism for dealing with this, but it does not kick
in early enough. Move the installation attempt check into
FormulaInstaller#check_install_sanity and catch the exception in the
appropriate places.

Fixes #16957.
2013-01-10 16:46:54 -06:00
..
2013-01-07 14:32:14 -06:00
2011-11-13 19:23:00 -08:00
2012-12-04 12:06:02 +00:00
2012-07-04 22:47:33 -05:00
2013-01-07 14:32:14 -06:00
2012-11-11 18:49:32 -06:00
2013-01-09 17:36:17 -06:00
2012-07-16 16:26:47 -05:00
2012-08-17 13:38:26 -05:00
2012-12-27 23:41:44 -06:00