| Age | Commit message (Collapse) | Author |
|
|
|
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.
|
|
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).
|
|
This reverts commit d7e72899e6f24dca5e02a734d5a4e64e39fc680e.
|
|
See https://github.com/Homebrew/brew/pull/1752#discussion_r94257147
|
|
formula_versions: handle uncommitted formulae.
|
|
ENV: deprecate old methods.
|
|
audit: improve reliability of homepage audit.
|
|
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.
|
|
These should have been deprecated long ago but we didn’t really have
the necessary framework to do so.
|
|
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.
|
|
Otherwise an uncommitted formula can trigger an invalid `brew audit`
result.
Fixes #1731.
|
|
Fixes #1524.
|
|
|
|
This method isn't used any more
|
|
It didn't occur to me that this would work, but it does! Magic.
|
|
The example command given in the dependency errors/warnings previously
comma-seperated the kegs, which was incorrect syntax. This fixes that.
|
|
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.
|
|
Deprecate `brew cask update`.
|
|
formula_installer: optional deps version check.
|
|
Fixes #1554.
|
|
|
|
|
|
|
|
|
|
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.
|
|
This has been tested by `brew test-bot` since March and there’s been no
issues so let’s turn it on by default.
|
|
|
|
|
|
|
|
|
|
tap_migrations: support renaming to/from casks.
|
|
Add Kaby Lake to Linux hardware list
|
|
formula: don't expand unused optional dependencies
|
|
keg: installed dependencies of unknown formulae
|
|
Allow `tap_migrations` entries to have a `user/repo/formula` or
`user/repo/cask` format for migration of formulae to/from casks.
|
|
formula_installer: prevent version mismatched deps
|
|
Allow configuring whether output should be shown or the default the
default user agent is used.
|
|
- 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.
|
|
|
|
audit: don't allow openssl & libressl dependency.
|
|
Don't drop .rb suffix for formula names
|
|
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.
|
|
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.
|
|
brew deps: support --full-name in --installed, --all, and --tree modes
|
|
|
|
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!
|
|
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.
|
|
see #1526
|
|
Fixes #1718
|