11445 Commits

Author SHA1 Message Date
Mike McQuaid
3f51406212 Merge pull request #2242 from GauthamGoli/audit_custom_cops
Port audit_desc audit rules to a cop
2017-04-05 08:37:43 +01:00
Mike McQuaid
dbc9cd7aa3 Merge pull request #2454 from MikeMcQuaid/audit-fix-core-formula-alias-check
audit: fix core formula alias check.
2017-04-05 08:34:58 +01:00
Mike McQuaid
57b230dd5c audit: fix core formula alias check.
Was missing a formula object being passed.
2017-04-04 18:38:18 +01:00
Mike McQuaid
39b8f106d2 update-report: don't show new, installed formulae.
These were those migrated from other taps but if they are installed
already: they aren't new to that user.
2017-04-04 15:15:42 +01:00
Mike McQuaid
715132642f Revert "keg_relocate: Don't relocate dylib IDs containing metavariables." 2017-04-04 13:29:27 +01:00
Mike McQuaid
2ba53eb272 Merge pull request #2448 from rwhogg/add-skylake-linux
Add Skylake to the Linux hardware list
2017-04-04 07:57:46 +01:00
mansimarkaur
fda41919cf Added test for check_access_lock_dir 2017-04-03 07:06:59 +05:30
Maxim Belkin
573aeff115 Add Skylake to Linux hardware list 2017-04-02 15:27:19 -07:00
Bob W. Hogg
c3b309e795 java_requirement: Add newline to failure message
Signed-off-by: Bob W. Hogg <rwhogg@linux.com>
2017-04-02 14:38:43 -07:00
Tim D. Smith
3b75075727 rubocop 2017-04-02 10:26:05 -07:00
Mike McQuaid
8ea778f7c7 Merge pull request #2412 from EricFromCanada/master
Xcode: update supported versions & download URLs for 8.3
2017-04-02 17:49:12 +01:00
Mike McQuaid
a47c93fe2d Merge pull request #2441 from MikeMcQuaid/install-handle-missing-receipt
Handle missing receipt on `brew install`.
2017-04-02 17:29:40 +01:00
Mike McQuaid
a084776f95 diagnostic: also ignore outdated CLT on Travis CI. 2017-04-02 17:24:33 +01:00
Tim D. Smith
2f4eaf26a0 Use extend/OS mechanism for grep args 2017-04-02 09:04:49 -07:00
Mike McQuaid
879b3360d3 Handle missing receipt on brew install.
For example if this is for a really old keg, keg where a user has
manually removed stuff or used `brew diy`.
2017-04-02 17:02:56 +01:00
Markus Reiter
a365e16b48 Merge pull request #2431 from reitermarkus/fix-sudo-root-wheel
Use `sudo` if parent path of `target` is not writable.
2017-04-02 17:58:45 +02:00
Tim D. Smith
d0feae0632 Unlink before rewriting link
ln_sf does the right thing when `dest` is a symlink pointing to a file:
the symlink gets overwritten with a link pointing to the new src. But
when dest points to a directory, we create a new symlink inside the
folder dest points to, which doesn't help us at all.
2017-04-02 08:19:29 -07:00
Tim D. Smith
51c4c84a3f Don't follow symlinks when hunting for strings
When we're assessing whether a bottle is relocatable, we shouldn't have
to descend into symlink paths we encounter. This is supposed to be the
default behavior but it doesn't appear to be (perhaps because we pass a
symlink to the keg on the command line?).

All of the switches that control this behavior differ between BSD and
GNU grep, so sniff the grep flavor first.
2017-04-02 08:17:07 -07:00
Mike McQuaid
566d3cb58b Document all short flags. 2017-04-02 10:14:58 +01:00
Mike McQuaid
bfcfdb4f01 man: strip </?var> from Markdown output. 2017-04-02 10:14:57 +01:00
Eugene Nikolsky
edd9a9717c Fix the 'export PATH' message in link for a keg-only formula
Commit 4cae6a724e6d684eb157dd6d7328755694f228b2 introduced the message,
but it printed the wrong path, e.g. for `brew link sqlite`:

```
If you need to have this software first in your PATH instead consider running:
  echo 'export PATH="/usr/local/opt/sqlite:$PATH"' >> ~/.zshrc/bin
```

where `/bin` is appended at the end, but should be inserted before
`:$PATH`: `echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.zshrc`.
This patch fixes that and updates a test to verify it.
2017-04-01 20:12:00 -07:00
JCount
0e1b7ce8ea gpg_spec: make test compatible with gnupg 2.1.x
maintain existing compatibility with gnupg 2.0.x
2017-04-01 21:29:09 -04:00
Mike McQuaid
82858176f0 keg: correctly remove alias symlinks.
Fixes #2427.
2017-04-01 16:33:24 +01:00
Vítor Galvão
1ea44788cb Merge pull request #2429 from vitorgalvao/rem-pre-bug
cask: remove pre_bug_report links
2017-04-01 16:04:19 +01:00
Mike McQuaid
7e32da8fab Merge pull request #2432 from jonchang/pil
missing_formula: pillow lives in homebrew/science
2017-04-01 12:02:24 +01:00
Jonathan Chang
18c7254ecd missing_formula: pillow lives in homebrew/science 2017-04-01 03:33:47 -07:00
Markus Reiter
c3baf55527 Use sudo if parent path of target is not writable. 2017-04-01 01:57:25 +02:00
Vítor Galvão
7c048b6f71 cask: remove pre_bug_report links 2017-03-31 20:24:23 +01:00
Ilya Zverev
f5321d1b0d Remove osmium from blacklisted formulas 2017-03-31 15:59:22 +03:00
Mike McQuaid
e9947fb42f Merge pull request #2397 from MikeMcQuaid/migrate-tweaks
Migrator: various rename fixes
2017-03-31 10:57:31 +01:00
Mike McQuaid
9b4d57b6df migrator: don't uninstall new_cellar if it existed
Otherwise we could end up removing files unnecessarily.
2017-03-31 10:36:26 +01:00
Mike McQuaid
7d07d859ce migrator: check if taps are from same user instead
This avoids needing to use `force: true` and still let's Homebrew do
what we want with our own taps.
2017-03-31 10:28:45 +01:00
Mike McQuaid
c08250b932 Merge pull request #2403 from carlorosati/rubyreq.hb
ruby_requirement: fix path prepend
2017-03-31 10:19:02 +01:00
Mike McQuaid
dd7121dd7c migrator: relink linked new_cellar kegs. 2017-03-31 10:01:46 +01:00
Mike McQuaid
90c6d5f40a upgrade: perform rename migrations when needed. 2017-03-31 10:01:46 +01:00
Mike McQuaid
61ebc128af reinstall: perform rename migrations when needed. 2017-03-31 10:01:46 +01:00
Mike McQuaid
d82522060e install: perform rename migrations when needed. 2017-03-31 10:01:46 +01:00
Mike McQuaid
ffd706d997 update-report: more forceful rename migration.
Migrate between different taps and delete relevant subdirectories if
they can be safely. Also, tweak some naming and use utility methods.
2017-03-31 10:01:45 +01:00
Mike McQuaid
f3743e98b6 migrator: make headers more consistent.
Use `oh1` for moving kegs to a new directory.
2017-03-31 10:01:45 +01:00
Mike McQuaid
1606e5db6f migrator: move around some migration logic.
Move the checks for moving kegs to a new directory into the relevant
method (`move_to_new_directory`) instead. Also, delete duplicated
directories when we’ve confirmed they are definitely duplicated rather
than telling users to do so.
2017-03-31 10:01:45 +01:00
Mike McQuaid
5d1f4dd531 migrator: add more helper methods.
Add methods to determine if a migration is needed and perform it if so
(and no-op if not). Additionally, make `ARGV.force?` get passed as a
parameter so it can be overridden without requiring users to pass
`—force`.
2017-03-31 10:01:45 +01:00
Mike McQuaid
80b39bb239 Merge pull request #2374 from joshka/cleanup-command-continue-on-error
Cleanup: Continue on error removing keg
2017-03-31 09:43:47 +01:00
Joshua McKinney
48fdd163bc Brew cleanup: Continue on error removing keg
Fixes #2355
Create unremovable_kegs instance var
Check cellar cleanup failure after full cleanup completes
Use module_function in Homebrew::Cleanup as we never instantiate the
class
2017-03-31 01:44:04 -05:00
Mike McQuaid
1ba401039e Merge pull request #2422 from MikeMcQuaid/formula-missing-dependencies-handle-unavailable-formula
formula: handle missing deps when formula missing.
2017-03-30 20:25:18 +01:00
Mike McQuaid
a582be06c2 Merge pull request #2421 from MikeMcQuaid/formula-check-alias-exists
formula: check installed_alias_path exists.
2017-03-30 20:25:05 +01:00
Mike McQuaid
b22407972f Merge pull request #2419 from MikeMcQuaid/fix-tap-cask-migration
Fix handling of tap migrations to new cask names.
2017-03-30 20:24:58 +01:00
Mike McQuaid
b6792fc7be Merge pull request #2401 from wjlroe/print-pinned-on-outdated
Include the pinned version in brew outdated output for pinned formulae
2017-03-30 20:24:30 +01:00
Mike McQuaid
3805850eb3 Merge pull request #2414 from sjackman/update-test-fetch-shallow
update-test: Use git fetch --tags --depth=1
2017-03-30 19:58:42 +01:00
Mike McQuaid
8b682e22cd Merge pull request #2418 from MikeMcQuaid/formula-installer-another-test
formula_installer_spec: add default formula test.
2017-03-30 19:39:52 +01:00
Mike McQuaid
8472d6a40e formula: check installed_alias_path exists.
Otherwise return `nil`.

Fixes https://github.com/Homebrew/brew/issues/2417
2017-03-30 19:39:26 +01:00