aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/install.rb
AgeCommit message (Collapse)Author
2014-10-31Check for MacPorts/Fink installation only after build failuresJack Nagel
2014-10-31Revert "run macports check after failed build instead of before every build"Jack Nagel
CannotInstallFormulaError is only raised when another version of the formula is linked or any of its dependencies are unlinked, in which case this warning is totally irrelevant. It should be checked after build errors instead. This reverts commit 466d0f718bc2241e830393b384294c21194995e0.
2014-10-31Remove FormulaAlreadyInstalledErrorJack Nagel
install is the only command that can trigger this warning, so it should be handled before instantiating the installer.
2014-10-28cmd/install: fallback to searching formula names.Jim Witschey
Closes Homebrew/homebrew#33648. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-10-21Point to a tap when installing or fetching.Mike McQuaid
When installing or fetching and stuff goes wrong we can't always catch the error and redirect to the tap. Instead, point to the tap before we do anything failure-prone and hopefully that'll encourage people to file issues in the right place. If not we can say that explicitly. Closes Homebrew/homebrew#33220.
2014-10-20Drop pointless use of CannotInstallFormulaErrorJack Nagel
These are not caught anywhere, just raise the string. Missed in 1b3b61ff08a4ee5979838f7dbc171e9b38e83f7c.
2014-09-14Consistently call name on formula instead of relying on to_sJack Nagel
2014-08-30Install dependencies before an interactive installJack Nagel
Closes Homebrew/homebrew#29121.
2014-08-25install: search when formula isn't found.Mike McQuaid
If you do `brew install blah` it currently doesn't search for it. This seems to be unintentional looking at this code as the exception thrown by ARGV.formulae.each is not caught and handled. Instead, let's handle this case and provide a little more usability around our taps. Closes Homebrew/homebrew#31761. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-06-19Only "extend self" once on the Homebrew moduleJack Nagel
2014-06-16Move head-only checks to cmd/installJack Nagel
Fixes Homebrew/homebrew#30084. Closes Homebrew/homebrew#30203.
2014-06-16install: move requires to top of fileJack Nagel
2014-06-03doctor: Add check for install_name_toolMisty De Meo
Closes Homebrew/homebrew#29593.
2014-05-19Remove deprecated --use-{gcc,llvm,clang}Jack Nagel
Closes Homebrew/homebrew#29380.
2014-05-12Separate Xcode and CLT doctor checks by OS X versionJack Nagel
Closes Homebrew/homebrew#29206.
2014-04-27run macports check after failed build instead of before every buildAndrew Potter
Closes Homebrew/homebrew#28717. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-15Rewrite `brew reinstall`Jack Nagel
Fixes Homebrew/homebrew#23928.
2014-03-13Make FormulaInstaller setup more readableJack Nagel
2014-03-13Make debug an installer modeJack Nagel
2014-03-13Make verbose an installer modeJack Nagel
2014-03-13Make interactive an installer modeJack Nagel
2014-03-10Make force_bottle an explicit installer modeJack Nagel
2014-03-10install: explicitly pass used options to the installerJack Nagel
2014-03-10Make build_from_source an explicit installer modeJack Nagel
2014-03-10Make build_bottle an explicit installer modeJack Nagel
2014-03-04Let commands decide what mode the installer should useJack Nagel
2014-03-04Extract installer setup to prelude methodJack Nagel
2014-03-02Revert "Let commands decide what mode the installer should use"Jack Nagel
I'd still like to make this change, but at least for now the initializer requires ignore_deps to be set correctly. This reverts commit 881a8855b944fa9bd7dfd598bb9197f79f7a13f0.
2014-03-02Let commands decide what mode the installer should useJack Nagel
2014-02-28Use Formula.pathJack Nagel
2014-02-11Revert "Recognize --head as an alias for --HEAD"Adam Vandenberg
This reverts commit c32ab0a35a2dfa9b593f759ef0ae8b7af077b0b7. There are other hard-coded uses of HEAD, in build_options for instance. These all need to be fixed before enabling this.
2014-02-09Recognize --head as an alias for --HEADMisty De Meo
Homebrew currently recognizes "--head" during the install process, but rather than actually fetch HEAD it just nags the user to use the correct option. Since we recognize the spelling anyway, this just promotes the lowercase version to an official alias. Closes Homebrew/homebrew#26555.
2014-01-03install, update: AlreadyTappedError never raised.Mike McQuaid
2013-12-12Remove unused variablesJack Nagel
2013-12-02Emit deprecation warning for --use-{gcc,llvm,clang}Jack Nagel
Closes Homebrew/homebrew#24864.
2013-10-31install: search when formula isn't found.Mike McQuaid
2013-10-30install: print osx-gcc-installer doctor warning.Mike McQuaid
2013-10-22Different regex for user/tap/formula and user/tap.Mike McQuaid
Closes Homebrew/homebrew#23430.
2013-10-21install: silently ignore already tapped taps.Mike McQuaid
2013-10-21install: fix trying to tap local bottles.Mike McQuaid
2013-10-21install: tap if full tap formula format given.Mike McQuaid
Closes Homebrew/homebrew#23411. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-09-05Revert Library/Homebrew/cmd/install.rb to 4b320eec.Xiyue Deng
* Fix problem when install exception got swallow and reinstall thinks it succeeded.
2013-09-05reinstall cleanupSamuel John
2013-09-05Make reinstall transaction safe.Xiyue Deng
* Aborting during reinstall will now restore the originally installed keg. - Change install code to pass on CannotInstallFormulaError exception to caller so it can be reused in reinstall. * Add "--force-new-install" flag to force installing a new formula. Closes Homebrew/homebrew#22190. Signed-off-by: Samuel John <github@SamuelJohn.de>
2013-06-14Use Hardware::CPU moduleJack Nagel
2013-06-12install: remove overcautious array manipulationJack Nagel
2013-06-08Consolidate sudo checks.Adam Vandenberg
Closes Homebrew/homebrew#20318.
2013-05-22Refactor Xcode/CLT version checksJack Nagel
2013-04-03Don't error out when a package is already installedJack Nagel
Fixes Homebrew/homebrew#17010.
2013-01-10Don't attempt installation multiple timesJack Nagel
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.