aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/exceptions.rb
AgeCommit message (Collapse)Author
2016-02-01DSL method "apply" to specify patch filesilovezfs
The "apply" DSL method can be called from patch-do blocks to specify the paths within an archive of the desired patch files, which will be applied in the order in which they were supplied to the "apply" calls. If "apply" isn't used, raise an error whenever the extracted directory doesn't contain exactly one file. The "apply" method can be called zero or more times within a patch-do block with the following syntaxes supported: apply "single_apply" apply "multiple_apply_1", "multiple_apply_2" apply [array_of_apply] If apply must be used, a single call using the second syntax above is usually best practice. Each apply leaf should be the relative path to a specific patch file in the extracted directory. For example, if extracting this-v123-patches.tar.gz gives you this-123 this-123/.DS_Store this-123/LICENSE.txt this-123/patches this-123/patches/A.diff this-123/patches/B.diff this-123/patches/C.diff this-123/README.txt and you want to apply only B.diff and C.diff, then you need to use "patches/B.diff" and "patches/C.diff" for the lowest-level apply leaves. The code was provided by Xu Cheng. Any mistakes are mine.
2016-01-05exceptions: hotfixBaptiste Fontaine
2016-01-05doctor: move code away from cmd/Baptiste Fontaine
Closes Homebrew/homebrew#47665. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-30Tap#issues_url addedBaptiste Fontaine
Closes Homebrew/homebrew#47454. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-12-09exceptions: tap is a Tap object nowXu Cheng
2015-12-03centralize the logic of handling `homebrew-` in Tap.fetchXu Cheng
Closes Homebrew/homebrew#46537. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-11-17Common build environment methods moved in build_environment.rbBaptiste Fontaine
Closes Homebrew/homebrew#45966. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-11-09exceptions: add TapAlreadyTappedErrorXu Cheng
2015-10-23run Checks#check_for_unsupported_osx unconditionallyXu Cheng
2015-10-23os: centralize check for pre-release OS X versionsMartin Afanasjew
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-19install: make search output more intuitive.Eric Andrew Lewis
Closes Homebrew/homebrew#42222. Closes Homebrew/homebrew#44892. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-14FormulaValidationError: include full_nameBaptiste Fontaine
Closes Homebrew/homebrew#44946. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-09-06exceptions: handle HOMEBREW_NO_GITHUB_API case.Mike McQuaid
Closes Homebrew/homebrew#43618.
2015-08-28reformat nested heredocs in BuildFlagsError and BuildToolsError to match ↵William Woodruff
String#undent behavior Closes Homebrew/homebrew#43303. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-22core file style updateXu Cheng
2015-08-21exceptions: change 10.9 Xcode URLMisty De Meo
2015-08-21exceptions: use xcode frontpageDominyk Tiller
2015-08-21Merge bottle install without Xcode branchMisty De Meo
Merge branch 'bottle_hooks'
2015-08-21Install: add BuildToolsError and BuildFlagsErrorWilliam Woodruff
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-10exceptions: add TapFormulaWithOldnameAmbiguityErrorVlad Shablinsky
- TapFormulaWithOldnameAmbiguityError is an exception raised when multiple tap formulae available for given old name
2015-08-10implement pinning of tapsCNA-Bld
2015-08-03Core files style updates.BrewTestBot
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-26Fix typo in UnsatisfiedRequirements exception messageEdgar Gonzalez
Closes Homebrew/homebrew#42125. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-07-24BottleLoader: check version mismatchXu Cheng
Closes Homebrew/homebrew#42049. Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-22exceptions: don't bracket urlpolamjag
Closes Homebrew/homebrew#41592. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-07-19TapFormulaUnavailableError: add back user and repo methodXu Cheng
Fixes Homebrew/homebrew#41888.
2015-07-19improve TapLoader and TapFormulaUnavailableErrorXu Cheng
* 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-06-16Move 10.11 warning to doctor, pre-install, and post-failureJack Nagel
Fixes Homebrew/homebrew#40778.
2015-06-14add TapUnavailableErrorXu Cheng
2015-05-29exceptions: use Formula#full_nameXu Cheng
2015-05-27load tap formula through direct searchXu Cheng
2015-04-25Add Formula#logsJack Nagel
2015-03-03Always output formula information on build errorsJack Nagel
2015-02-26exceptions: instruct not to file boneyard issues.Mike McQuaid
2014-12-30Always dump full configurationJack Nagel
2014-12-29Move exception text into exception objectJack Nagel
2014-12-29Preserve backtrace for download errorsJack Nagel
2014-12-23Always show attribute value in validation error messageJack Nagel
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-09-18Pass command and arg list into ErrorDuringExecution constructorJack Nagel
2014-09-14Consistently call name on formula instead of relying on to_sJack Nagel
2014-09-14Remove InstallationError superclassJack Nagel
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-13Remove unused attribute from BuildErrorJack Nagel
2014-09-13Pass the ENV hash into the BuildError constructorJack Nagel
2014-09-12Use the superclass properlyJack Nagel
2014-09-12Make parameter names match superclass parameter namesJack Nagel
2014-09-12Remove default argument from Homebrew::InstallationErrorJack Nagel
This class is never instantiated directly, and all subclasses initializers have different signatures and do not rely on this.
2014-09-12Make exception subclasses use their superclass properlyJack Nagel
2014-08-25Inline variableJack Nagel
2014-08-22Decouple IncompatibleCxxStdlibs from its superclassJack Nagel
This exception is never used outside of the CxxStdlib class, so we don't need the Homebrew::InstallationError superclass.