Jack Nagel 5c799ef8c8 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 Homebrew/homebrew#16957.
2013-01-10 16:46:54 -06:00
..
2011-03-19 11:06:51 -07:00
2012-09-21 23:30:34 -04:00
2012-02-04 00:27:05 -06:00
2012-12-27 23:41:44 -06:00
2012-04-11 18:24:46 -05:00
2013-01-09 17:09:28 -06:00
2011-08-24 22:30:43 +01:00
2012-12-27 23:41:44 -06:00
2012-08-31 10:22:10 -04:00
2012-10-22 12:27:17 -07:00
2012-08-05 10:34:44 -04:00
2012-08-18 11:25:59 -05:00
2012-08-21 12:09:05 -04:00
2012-12-27 23:41:44 -06:00
2013-01-07 17:37:28 -06:00
2012-03-23 00:16:08 +00:00
2012-08-21 12:09:05 -04:00