aboutsummaryrefslogtreecommitdiffstats
path: root/Library
AgeCommit message (Collapse)Author
2016-12-31Remove `:bsexec` parameter from `SystemCommand`.Markus Reiter
2016-12-31formula: make prefix usually return opt_prefix.Mike McQuaid
Return `opt_prefix` if it exists and `prefix` is not called from within the same formula's `install` or `post_install` methods. Otherwise, fall back to the existing functionality. This avoids the need to use `opt_prefix` etc. everywhere and generally means we don't expose an implementation detail (i.e. the full Cellar path) to dependents that have a habit of hard-coding it.
2016-12-31keg: don't return nil dependenciesAlyssa Ross
This is a proper fix to the problem addressed by #1510. The problem arises when f_kegs is nil, which can happen if the name and tap used to install a keg don't match the name and tap currently associated with its formula (i.e. if it's been renamed or moved).
2016-12-31Revert "uninstall: remove nil requireds/dependents"Alyssa Ross
This reverts commit d7e72899e6f24dca5e02a734d5a4e64e39fc680e.
2016-12-30docs: improve Keg.find_some_installed_dependenciesAlyssa Ross
See https://github.com/Homebrew/brew/pull/1752#discussion_r94257147
2016-12-30Merge pull request #1754 from MikeMcQuaid/audit-fix-uncommitted-version-schemeMike McQuaid
formula_versions: handle uncommitted formulae.
2016-12-30Merge pull request #1701 from MikeMcQuaid/deprecate-std-superenv-stuffMike McQuaid
ENV: deprecate old methods.
2016-12-30Merge pull request #1725 from MikeMcQuaid/curl-homepage-reliablityMike McQuaid
audit: improve reliability of homepage audit.
2016-12-30tab: remove #reliable_runtime_dependencies?Alyssa Ross
See https://github.com/Homebrew/brew/pull/1750#discussion_r94243825 for discussion. Removes Tab#reliable_runtime_dependencies? in favour of returning nil from Tab#runtime_dependencies if the list is unreliable. Because Homebrew 1.1.6 hasn't been tagged yet, tabs created in tests aren't created with a homebrew_version that marks the runtime_dependencies in the Tab as reliable, so there are some tests that fail. To work around this, I've had to add a line to some tests that explicitly overrides the homebrew_version in the Tab. This is really ugly though, so they should be removed as soon as possible after 1.1.6 is released.
2016-12-30ENV: deprecate old methods.Mike McQuaid
These should have been deprecated long ago but we didn’t really have the necessary framework to do so.
2016-12-30audit: use new curl_args form.Mike McQuaid
This will use Curl’s default user agent to reduce homepage errors and provides a function that can be used for other audits to perform similar tests on URLs.
2016-12-30formula_versions: handle uncommitted formulae.Mike McQuaid
Otherwise an uncommitted formula can trigger an invalid `brew audit` result. Fixes #1731.
2016-12-30keg: fix fallback dependencies with multiple kegsAlyssa Ross
Fixes #1524.
2016-12-30tests: explain Homebrew version checking in tabsAlyssa Ross
2016-12-30tab: remove #homebrew_tagAlyssa Ross
This method isn't used any more
2016-12-30tab: parse full Homebrew version stringAlyssa Ross
It didn't occur to me that this would work, but it does! Magic.
2016-12-30uninstall: don't comma-seperate kegs in exampleAlyssa Ross
The example command given in the dependency errors/warnings previously comma-seperated the kegs, which was incorrect syntax. This fixes that.
2016-12-30uninstall: better example in dependency warningAlyssa Ross
Previously, this only included a subset of all the kegs the user was trying to uninstall. With this change, all named formulae/kegs will be included in the example command.
2016-12-30Merge pull request #1690 from reitermarkus/brew-cask-updateMarkus Reiter
Deprecate `brew cask update`.
2016-12-30Merge pull request #1749 from MikeMcQuaid/optional-check-recursive-dependenciesMike McQuaid
formula_installer: optional deps version check.
2016-12-30keg: fall back for dependencies of buggy tabsAlyssa Ross
Fixes #1554.
2016-12-30tab: implement #reliable_runtime_dependencies?Alyssa Ross
2016-12-30tests: include homebrew version in receipt fixtureAlyssa Ross
2016-12-30Hide `update` from `brew cask help`.Markus Reiter
2016-12-30Do not require `compat/hbc/cli/update` when `—no-compat` is specified.Markus Reiter
2016-12-30formula_installer: optional deps version check.Mike McQuaid
Require `HOMEBREW_CHECK_RECURSIVE_VERSION_DEPENDENCIES` to be specified (which will be by `brew test-bot`) to avoid this being inflicted on end-users unnecessarily.
2016-12-30cc: always filter flags on deps.Mike McQuaid
This has been tested by `brew test-bot` since March and there’s been no issues so let’s turn it on by default.
2016-12-30Add warning to `brew cask help`.Markus Reiter
2016-12-30Remove `brew cask update` from manpage.Markus Reiter
2016-12-30Deprecate `brew cask update`.Markus Reiter
2016-12-30Add option to disable methods on specific date.Markus Reiter
2016-12-29Merge pull request #1682 from MikeMcQuaid/tap_migrations_renameMike McQuaid
tap_migrations: support renaming to/from casks.
2016-12-29Merge pull request #1694 from rwhogg/add-kabylakeMike McQuaid
Add Kaby Lake to Linux hardware list
2016-12-29Merge pull request #1723 from alyssais/runtime_dependenciesMike McQuaid
formula: don't expand unused optional dependencies
2016-12-29Merge pull request #1737 from alyssais/tap_dependentsMike McQuaid
keg: installed dependencies of unknown formulae
2016-12-29tap_migrations: support renaming to/from casks.Mike McQuaid
Allow `tap_migrations` entries to have a `user/repo/formula` or `user/repo/cask` format for migration of formulae to/from casks.
2016-12-29Merge pull request #1681 from MikeMcQuaid/refuse-install-mixed-dependency-treeMike McQuaid
formula_installer: prevent version mismatched deps
2016-12-29curl: make curl_args more configurable.Mike McQuaid
Allow configuring whether output should be shown or the default the default user agent is used.
2016-12-29audit: improve reliability of homepage audit.Mike McQuaid
- Don't run on Yosemite where the system Curl is too old for some modern HTTPS homepages - Try up to 3 times in case of transient failures.
2016-12-29development_tools: remove unused method.Mike McQuaid
2016-12-29Merge pull request #1700 from MikeMcQuaid/no-libressl-and-opensslMike McQuaid
audit: don't allow openssl & libressl dependency.
2016-12-29Merge pull request #1733 from vladshablinsky/rb_in_nameMike McQuaid
Don't drop .rb suffix for formula names
2016-12-29audit: don't allow openssl & libressl dependency.Mike McQuaid
Formulae should not depend on both OpenSSL and LibreSSL (even optionally). This is to avoid descending into madness where every formulae that could use LibreSSL has to have option and switching logic. Homebrew has standardised on OpenSSL and will do so everywhere that LibreSSL is not a hard requirement.
2016-12-28Delete pkgutil directories that are really files.Nathan Toone
Sometimes, pkgutil will return actual files (usually .nib files) as if they were part of the directory. Microsoft Office is an example of this: in a recent update the file `/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app/Contents/SharedSupport/Microsoft Error Reporting.app/Contents/Resources/en.lproj/MainWindowAlt.nib` was returning from `/usr/sbin/pkgutil --only-dirs --files com.microsoft.package.component` even though it should have been a file instead of a directory. This caused the `rmdir` command to fail. This patch will check if we are trying to delete a “directory” that is really a “file” - and if we are, we just delete the file instead. This will allow packages that get in this state to be uninstalled. A unit test which can be run using `brew cask-tests` is also included.
2016-12-28Merge pull request #1706 from apjanke/deps-all-full-nameAndrew Janke
brew deps: support --full-name in --installed, --all, and --tree modes
2016-12-27brew deps: support --full-name in --installed, --all, and --tree modesAndrew Janke
2016-12-27keg: fix dependents with unavailable formulaeAlyssa Ross
Because of an accidental use of `=` instead of `==`, the source formula check would be skipped when determining if a keg depended on another one (so only the versions would be compared). Fixed that comparison, and updated the corresponding test. Glad I caught that!
2016-12-27keg: installed dependencies of unknown formulaeAlyssa Ross
Previously, trying to resolve the dependencies of a keg would raise an exception if the formulae for any of the dependencies could not be found (e.g. if it had been moved to another tap). This commit updates the dependency finding logic to catch these exceptions, and fall back to comparing names and taps of formulae, which should give the correct behaviour. Fixes #1586.
2016-12-27tests: don't run LinkTests twiceAlyssa Ross
see #1526
2016-12-26Don't drop .rb suffix for formula namesUladzislau Shablinski
Fixes #1718