124 Commits

Author SHA1 Message Date
Xu Cheng
d6bf2f5749 run Checks#check_for_unsupported_osx unconditionally 2015-10-23 19:42:22 +08:00
Martin Afanasjew
30cad0608f os: centralize check for pre-release OS X versions
Provide `OS::Mac.prerelease?` for pre-release checks and use it where
appropriate. This should simplify updating the test once a new OS X
release lands.

This also fixes a bug in `BuildError#dump`, where an empty warning
message was printed on El Capitan after a failed from-source build,
because the check there and the one in `check_for_unsupported_osx` were
out of sync.

Closes Homebrew/homebrew#45257.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-23 12:34:44 +01:00
Eric Andrew Lewis
5ec396ed38 install: make search output more intuitive.
Closes Homebrew/homebrew#42222.
Closes Homebrew/homebrew#44892.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-19 10:16:40 +01:00
Baptiste Fontaine
f3035333fb FormulaValidationError: include full_name
Closes Homebrew/homebrew#44946.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-14 16:21:42 +02:00
Mike McQuaid
cbb91c5516 exceptions: handle HOMEBREW_NO_GITHUB_API case.
Closes Homebrew/homebrew#43618.
2015-09-06 13:30:02 +01:00
William Woodruff
c459349b89 reformat nested heredocs in BuildFlagsError and BuildToolsError to match String#undent behavior
Closes Homebrew/homebrew#43303.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-28 18:02:05 +08:00
Xu Cheng
a88c40b8c8 core file style update 2015-08-22 13:15:33 +08:00
Misty De Meo
3d1f9e0a9c exceptions: change 10.9 Xcode URL 2015-08-21 11:46:39 -07:00
Dominyk Tiller
ff8520e61b exceptions: use xcode frontpage 2015-08-21 19:28:05 +01:00
Misty De Meo
727239e12f Merge bottle install without Xcode branch
Merge branch 'bottle_hooks'
2015-08-21 11:04:22 -07:00
William Woodruff
91e598cf3f Install: add BuildToolsError and BuildFlagsError
Add these new errors, and guards in formula installation and
cmd/{,un,re}install to match, move can_build? to the MacOS module,
flatten conditions, remove redundant can_build? check

reinstate removed (doctor) check
2015-08-21 10:59:09 -07:00
Vlad Shablinsky
ab1164f4de exceptions: add TapFormulaWithOldnameAmbiguityError
- TapFormulaWithOldnameAmbiguityError is an exception raised when
multiple tap formulae available for given old name
2015-08-10 13:57:59 +01:00
CNA-Bld
1a82b2133e implement pinning of taps 2015-08-10 12:17:25 +01:00
BrewTestBot
13d544e11e Core files style updates.
Closes Homebrew/homebrew#42354.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 13:22:35 +01:00
Edgar Gonzalez
fbb8efbd66 Fix typo in UnsatisfiedRequirements exception message
Closes Homebrew/homebrew#42125.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-07-26 09:19:22 +02:00
Xu Cheng
b1fff32055 BottleLoader: check version mismatch
Closes Homebrew/homebrew#42049.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-24 15:59:28 +08:00
polamjag
1b78fe240e exceptions: don't bracket url
Closes Homebrew/homebrew#41592.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-07-22 05:07:35 +01:00
Xu Cheng
842c0227bc TapFormulaUnavailableError: add back user and repo method
Fixes Homebrew/homebrew#41888.
2015-07-19 16:42:40 +08:00
Xu Cheng
140f8e3df7 improve TapLoader and TapFormulaUnavailableError
* Restore the ability to load formula by `user/homebrew-repo/foo`.
* Only suggest to install tap when tap isn't installed.

Closes Homebrew/homebrew#41705.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-19 12:10:33 +08:00
Jack Nagel
72cb403a56 Move 10.11 warning to doctor, pre-install, and post-failure
Fixes Homebrew/homebrew#40778.
2015-06-16 20:02:10 -04:00
Xu Cheng
b88cb13718 add TapUnavailableError 2015-06-14 21:28:36 +08:00
Xu Cheng
3ac2b7b1c6 exceptions: use Formula#full_name 2015-05-29 17:02:23 +08:00
Xu Cheng
811c4c5add load tap formula through direct search 2015-05-27 13:53:40 +08:00
Jack Nagel
16dfe3dd40 Add Formula#logs 2015-04-25 23:14:05 -04:00
Jack Nagel
162716f3fb Always output formula information on build errors 2015-03-03 21:11:00 -05:00
Mike McQuaid
b9790ffe3a exceptions: instruct not to file boneyard issues. 2015-02-26 19:17:12 +00:00
Jack Nagel
77c0f60434 Always dump full configuration 2014-12-30 23:33:50 -05:00
Jack Nagel
8b51cf019d Move exception text into exception object 2014-12-29 22:57:45 -05:00
Jack Nagel
912a586d15 Preserve backtrace for download errors 2014-12-29 22:51:55 -05:00
Jack Nagel
1b1a73bddb Always show attribute value in validation error message 2014-12-23 15:37:24 -05:00
Jack Nagel
9a356fc609 Remove FormulaAlreadyInstalledError
install is the only command that can trigger this warning, so it should
be handled before instantiating the installer.
2014-10-31 18:33:39 -05:00
Jack Nagel
56dd575f96 Pass command and arg list into ErrorDuringExecution constructor 2014-09-18 20:32:50 -05:00
Jack Nagel
f3b7c3236b Consistently call name on formula instead of relying on to_s 2014-09-14 11:19:30 -05:00
Jack Nagel
081036c81c Remove InstallationError superclass
None of these subclasses share any behavior other than what is inherited
from RuntimeError, so we can just get rid of the superclass.
2014-09-14 01:10:20 -05:00
Jack Nagel
2332e6525d Remove unused attribute from BuildError 2014-09-13 19:49:27 -05:00
Jack Nagel
a607c71123 Pass the ENV hash into the BuildError constructor 2014-09-13 19:47:30 -05:00
Jack Nagel
20516ee39b Use the superclass properly 2014-09-12 21:31:48 -05:00
Jack Nagel
1f3bbe64e0 Make parameter names match superclass parameter names 2014-09-12 21:31:48 -05:00
Jack Nagel
c85c165fe9 Remove default argument from Homebrew::InstallationError
This class is never instantiated directly, and all subclasses
initializers have different signatures and do not rely on this.
2014-09-12 21:26:24 -05:00
Jack Nagel
1ace6f147d Make exception subclasses use their superclass properly 2014-09-12 21:24:56 -05:00
Jack Nagel
31dc3d1f42 Inline variable 2014-08-25 20:43:11 -05:00
Jack Nagel
262a503b6f Decouple IncompatibleCxxStdlibs from its superclass
This exception is never used outside of the CxxStdlib class, so we don't
need the Homebrew::InstallationError superclass.
2014-08-22 22:37:35 -05:00
Shaun Jackman
1fb1677532 Linuxbrew: Move ISSUES_URL to os from global
Closes Homebrew/linuxbrew#103

Closes Homebrew/homebrew#30830.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-07-12 15:39:59 -05:00
Matt Hauck
19847285f2 exceptions: fix typo
Closes Homebrew/homebrew#30821.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-07-11 15:08:18 -07:00
Jack Nagel
dae83fc895 Drop pointless string split 2014-07-06 13:52:44 -05:00
Jack Nagel
375c073cec Remove unused attribute 2014-05-28 19:02:30 -05:00
Jack Nagel
9821316ec1 Remove unused method and associated test fixtures 2014-05-28 18:48:38 -05:00
Mike McQuaid
54fc1946f9 exceptions: fix tap issue URL.
Closes Homebrew/homebrew#29043.
2014-05-08 11:43:11 +01:00
Adam Vandenberg
d4b0599a86 --config -> config 2014-04-30 19:09:29 -07:00
Mike McQuaid
165fdf4617 Use gcc instead of apple-gcc42 when needed. 2014-04-23 08:15:30 +01:00