Commit Graph
10734 Commits
Author SHA1 Message Date
Doug Hazell 0bb0228962 Presumably the "env -I" was a typo for "env -i"
Just sourcing brew.sh causes the "Example usage" msg due to lacking command args but changing the last line of your suggestion to:
  /bin/bash "$HOMEBREW_LIBRARY/Homebrew/brew.sh" "$@"
worked.

If all of the 'HOMEBREW.*' vars, that other parts of the system require, are only added in brew.sh then your suggestion is cleaner.
2017-02-12 14:31:37 +00:00
Doug Hazell e78b31905d fixup 2017-01-16 21:48:27 +00:00
Doug Hazell 90b3f9b19a fixup 2017-01-16 21:47:58 +00:00
Doug Hazell eca3f117ba Update with comments in the code 2017-01-16 21:25:25 +00:00
Mike McQuaidandGitHub 133e59724a Merge pull request #1763 from minamijoyo/add-feature-github-release-download-strategy
New feature: Allow download from private GitHub repository
2017-01-16 18:52:47 +00:00
Mike McQuaidandGitHub c6d7c85d4f Merge pull request #1826 from MikeMcQuaid/remove-to-uninstall-manpage
brew.1: use uninstall instead of remove.
2017-01-15 20:42:52 +00:00
Mike McQuaidandGitHub 8f88b4c8e6 Merge pull request #1846 from MikeMcQuaid/fix-head-upgrade-man
Fix documentation for HEAD upgrades.
2017-01-15 20:42:23 +00:00
Mike McQuaid feddacf829 formula_installer: set specified_path on pour.
This means that a `brew install $ALIAS` records the path accordingly
so  e.g. `Formula#full_installed_specified_name` returns the correct
path.
2017-01-15 14:26:07 +00:00
Mike McQuaid 7c15944991 Fix documentation for HEAD upgrades.
These can now be done with just `brew upgrade`, like other upgrades.

Fixes #1818.
2017-01-15 02:25:51 -08:00
ilovezfs 9dca10f9dc audit: whitelist unstable versions already in core
also allow higher stable versions with the same version prefix
2017-01-13 18:59:23 -08:00
ilovezfsandGitHub 1442a0aa7f Merge pull request #1830 from ilovezfs/InreplaceError-fix-undefined-method
InreplaceError: fix undefined method crash
2017-01-13 00:27:18 -08:00
Andrew Janke 62d48b4f9d brew deps --tree: fix gap in line between reqs and deps 2017-01-12 16:08:41 -05:00
ilovezfs ac7a593730 InreplaceError: fix undefined method crash
When the first parameter to inreplace was an array, and the replacement
failed, InreplaceError would end up crashing with an undefined method
exception because the order of operations resulted in super not being
passed the value of the entire inject block.
2017-01-12 07:22:34 -08:00
Mike McQuaid 3ccbfa72a2 brew.1: use uninstall instead of remove.
Fixes #1817.
2017-01-11 14:19:56 -08:00
Mike McQuaidandGitHub ebf3d939d1 Merge pull request #1808 from MikeMcQuaid/deprecate-linkapps
Deprecate brew (un)linkapps.
2017-01-11 11:13:26 -08:00
Mike McQuaidandGitHub 0a7e69173d Merge pull request #1816 from MikeMcQuaid/xcode-xquartz-default-path
xcode, xquartz: use default location when possible.
2017-01-11 11:08:52 -08:00
Mike McQuaidandGitHub 6d13c31fa4 Merge pull request #1814 from MikeMcQuaid/json_runtime_dependencies
formula: return runtime_dependencies in to_hash.
2017-01-11 11:06:49 -08:00
Mike McQuaid a17f38dd36 xcode: use default location when possible.
Xcode can be installed anywhere but for most people it's in
`/Applications/Xcode.app` so just look there if `xcode-select` isn't
helpful before looking at Spotlight which can return weird results on
e.g. backup disks.

Fixes #1587.
2017-01-09 21:10:55 -08:00
Mike McQuaid 2c6915a48f xcode: general cleanup. 2017-01-09 21:10:55 -08:00
Mike McQuaid 4a39070c26 xquartz: use default location when possible.
Xcode can be installed anywhere but for most people it's in
`/Applications/Xcode.app` so just look there by default before looking
at Spotlight which can return weird results on e.g. backup disks.
2017-01-09 21:10:55 -08:00
Mike McQuaid d8adae0f92 formulary: read from formula in opt prefix.
We want to prefer the newer/versioned formulae when possible but this
is preferable to a random cached formula or, worse, no formula.

This means `brew info foo` will never complain that `foo` is a missing
formula.
2017-01-09 21:42:09 +00:00
Mike McQuaid 28ad8a06cc formula: return runtime_dependencies in to_hash.
Which, in turn, provides it for `brew info --json=v1` so other tools
such as e.g. `brew bundle` can make use of this information.
2017-01-09 21:03:37 +00:00
Mike McQuaid c0a29d6644 caveats, keg: remove linkapps caveats code. 2017-01-09 14:10:26 +00:00
Mike McQuaid f5b63f4a8d Deprecate brew (un)linkapps.
Unfortunately `brew linkapps` cannot behave nicely with e.g. Spotlight
using either aliases or symlinks and Homebrew formulae do not build
"proper" `.app` bundles that can be relocated. Instead, please consider
using `brew cask` and migrate formulae using `.app`s to casks.
2017-01-09 14:10:26 +00:00
Mike McQuaidandGitHub 9cce3414fb Merge pull request #1806 from MikeMcQuaid/audit-virtualenv-setuptools
audit: check virtualenv and setuptools resource.
2017-01-09 14:08:30 +00:00
Mike McQuaid 346d68eb04 audit: check virtualenv and setuptools resource.
`virtualenv_install_with_resources` will automatically define and
install a `setuptools` resource so this is unnecessary.

References https://github.com/Homebrew/homebrew-core/pull/8570
2017-01-09 13:24:51 +00:00
Mike McQuaid c276a44eba bump-formula-pr: check for URL presence.
If it's not there, produce a nicer error.

Fixes #1805.
2017-01-09 12:16:55 +00:00
Masayuki Morita 12b9cb7f4c Fix rubocop style warning of download_strategy 2017-01-08 18:29:20 +09:00
Masayuki Morita 560d5bdd71 Validate a token when initializing GitHubPrivateRepositoryDownloadStrategy 2017-01-08 18:06:57 +09:00
Masayuki Morita 335be35acf Generalize GitHubReleaseDownloadStrategy in order to support archive URL 2017-01-08 16:44:54 +09:00
William Woodruff 6b63abb850 keg_relocate: Check HOMEBREW_TEMP's realpath when excluding name changes.
Since /tmp (the default HOMEBREW_TEMP) is a symlink to /private/tmp,
some build systems (like Parrot's) will attempt to use the realpath
instead of the literal /tmp we supply it with. This breaks the relocation
code, which only tested the literal HOMEBREW_TEMP and not its realpath.
2017-01-07 15:06:46 -05:00
Mike McQuaidandGitHub 8712139327 Merge pull request #1798 from MikeMcQuaid/audit-fake-safari-user-agent
Allow `brew audit` to fake a Safari user-agent.
2017-01-07 19:28:53 +00:00
Mike McQuaid e7a81caaf4 Allow brew audit to fake a Safari user-agent.
This allows us to detect if homepages such as e.g. `aiccu` which
blocks `curl` are up or not.
2017-01-07 14:03:08 +00:00
Mike McQuaidandGitHub dc9819b86c Revert "uses: properly handle untapped formulae in recursive dependency expansion" 2017-01-07 13:15:18 +00:00
Mike McQuaidandGitHub 4f9c13926e Merge pull request #1784 from alyssais/uses_tap_exception
uses: properly handle untapped formulae in recursive dependency expansion
2017-01-07 12:50:45 +00:00
Mike McQuaidandGitHub 4a51111454 Merge pull request #1786 from rwhogg/perl-version-may-lack-brackets
PerlRequirement: Perl version string may lack parentheses
2017-01-07 12:43:51 +00:00
Mike McQuaidandGitHub 14e8f252ad Merge pull request #1792 from javian/whitelistphpshadowedheader
Whitelist PHP formulas in shadowed header audit check
2017-01-07 12:18:14 +00:00
Mike McQuaidandGitHub f814ee87fb Revert "cc: always filter flags on deps." 2017-01-07 09:52:01 +00:00
Jan Viljanen 80b7d4c1aa Whitelist PHP formulas in shadowed header audit check 2017-01-06 23:43:25 +01:00
Mike McQuaid 4497190593 keg: use resolved_path not realpath.
This guards against this being a non-symlink in which case it will fail.
2017-01-06 16:35:41 +00:00
ilovezfsandGitHub 1a394aa7e5 Merge pull request #1782 from ilovezfs/prefix-fixups
Fix abv and prefix_linked?
2017-01-06 02:03:39 -08:00
Mike McQuaid 1a4ff22447 formula: tweak versioned prefix approach. 2017-01-06 08:50:35 +00:00
Mike McQuaid 6c2b614a04 pathname: make compute_disk_usage handle symlinks. 2017-01-06 08:50:20 +00:00
Mike McQuaidandGitHub 3fde8624b3 Merge pull request #1780 from MikeMcQuaid/use-docs-links
Use docs.brew.sh links.
2017-01-05 17:17:07 +00:00
Mike McQuaidandGitHub 2040adbe4a Merge pull request #1787 from alyssais/formula_comments
formula: correct grammar in comments
2017-01-05 17:06:52 +00:00
Mike McQuaidandGitHub 3dabf82d4d Merge pull request #1771 from alyssais/license_year
licenses: update copyright year
2017-01-05 17:02:44 +00:00
Alyssa Ross e466a65b8d formula: correct grammar in comments 2017-01-05 12:21:50 +00:00
Shaun JackmanandBob W. Hogg cd18536eff PerlRequirement: version number might not be wrapped in parentheses
For example:
This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
2017-01-04 22:57:14 -08:00
Alyssa Ross 536b6e2396 uses: properly handle recursive deps exceptions
Fixes #1776.

If any known formula had a dependency on an untapped tap,
Formula#recursive_dependencies would throw an exception, which would be
caught by the outer exception handler, causing the rest of the
dependencies for that formula to be skipped and incomplete output to be
generated.

To fix this, I added a check to avoid analysing the dependencies of
formulae from uninstalled taps.

Additionally, I removed the aforementioned outer exception handler added
in 5fdb89aed9, because the only other
place that should be capable of throwing such an exception is the
statement that was surrounded by another wider exception handler in
Homebrew/legacy-homebrew#40682.
2017-01-05 00:33:44 +00:00
Alyssa Ross 4c061fc183 dependency: TapDependency#tap returns a Tap
Previously, this returned a String, but a Tap instance seems much more
sensible.

I couldn't find anywhere this method was actually used, so the change
shouldn't break anything.
2017-01-05 00:22:56 +00:00