Andrew Janke
e72f1139ad
Formatter: identifier: only reset color, not full styling
2016-10-17 00:45:37 -04:00
Tim D. Smith
de880f1e87
Merge pull request #1298 from tdsmith/no-no-bad-unicode
...
Don't choke on invalid UTF-8 in `file` output
2016-10-16 09:47:02 -07:00
Mike McQuaid
be2e6df948
scm/git: more old OS X versions tweaks.
...
- unset IFS to fix version parsing on older Bashes
- reuse existing HOMEBREW_MACOS_VERSION if it’s available
- set rather than unset popup_stub
2016-10-16 16:11:41 +01:00
Mike McQuaid
2a18378a03
Merge pull request #1303 from MikeMcQuaid/old-osx-git-shim
...
shims/scm/git: fix on old OS X versions.
2016-10-16 15:45:18 +01:00
Mike McQuaid
7292ad1f1a
shims/scm/git: fix on old OS X versions.
...
On older versions of OS X (i.e. pre-Mavericks) `xcode-select` is not
required to be set when using the CLT. Fix this behaviour so `brew
update` doesn't tell everyone on that configuration to `brew install
git`.
2016-10-16 14:14:23 +01:00
ilovezfs
a53eca8cde
dependency_collector: need xz dep on <= macOS 10.8
...
Mountain Lion: http://opensource.apple.com/source/libarchive/libarchive-25.1/config.h
`/* #undef HAVE_LIBLZMA */`
Mavericks: http://opensource.apple.com/source/libarchive/libarchive-29/config.h
`#define HAVE_LIBLZMA 1`
2016-10-16 05:48:37 -07:00
Tim D. Smith
22a64aa6c6
Explain why info could be nil
2016-10-15 23:52:55 -07:00
Tim D. Smith
371cd0dd3e
Don't choke on invalid UTF-8 in file
output
...
Sometimes `file` output contains data from the file under examination,
which may include binary data that does not represent valid UTF-8
codepoints. String#split dies if it doesn't understand the encoding, so
tell Ruby to treat `file` output as a bytestring.
2016-10-15 21:21:08 -07:00
Yoshimasa Niwa
5d606dd0a2
Use SystemCommand.run instead of custom wrapper.
...
There is an existing `SystemCommand.run` that executes command with
`sudo`. Use that instead of yet another custom wrapper.
2016-10-15 15:19:30 -07:00
Mike McQuaid
7ac90613fd
Merge pull request #1290 from maxnordlund/patch-1
...
Fix wrong ordering on when clauses in audit.rb
2016-10-15 17:52:54 +01:00
Max Nordlund
c7fde5ddc9
Fix when clause ordering.
2016-10-15 18:31:06 +02:00
Markus Reiter
581a1245bf
Move Formatter.columns
into utils/formatter
.
2016-10-15 17:22:10 +02:00
Markus Reiter
ef70677e88
Add test for Formatter.columns
.
2016-10-15 17:13:38 +02:00
Markus Reiter
198bf4d3bd
Convert puts_columns
to puts Formatter.columns
.
2016-10-15 17:13:38 +02:00
Markus Reiter
429327cac8
Use proc
to fallback to puts
.
2016-10-15 17:13:38 +02:00
Markus Reiter
5ee6df6d82
Fallback to $stdout.tty?
unless respond_to?(:tty?)
.
2016-10-15 17:13:38 +02:00
Markus Reiter
a89dc33834
Change test for puts_columns
with empty input.
2016-10-15 17:13:38 +02:00
Markus Reiter
01d87f8107
Don’t use puts_columns
if empty?
or single item.
2016-10-15 17:13:38 +02:00
Markus Reiter
4bfeaaf212
puts_columns
only has to be defined inside module Kernel
.
2016-10-15 17:13:38 +02:00
Markus Reiter
6e10f91371
Refactor puts_columns
.
2016-10-15 17:13:37 +02:00
Mike McQuaid
527a62b64b
Merge pull request #1279 from MikeMcQuaid/use-tar-xz
...
Use BSD tar's libarchive LZMA support if available
2016-10-15 13:37:35 +01:00
Mike McQuaid
b1a16deb19
Use BSD tar's libarchive LZMA support if available
...
Avoid using an unnecessary `xz` dependency when it's not needed.
2016-10-15 13:10:37 +01:00
Mike McQuaid
7ab39e184b
Improve integration command test case output.
2016-10-15 12:32:34 +01:00
Mike McQuaid
f435adc2d0
Rename tap-readme command to tap-new.
...
Write the README but also a `.travis.yml` file (and in future perhaps a
`Jenkinsfile`).
2016-10-15 12:32:34 +01:00
Mike McQuaid
13276409a9
Merge pull request #1275 from woodruffw/goodbye-cctools
...
formula_installer: Remove obsolete hard dependency on cctools.
2016-10-15 11:47:29 +01:00
Max Nordlund
d9242c540d
Fix wrong ordering on when clauses in audit.rb
...
It looks like a rebase/merge conflict remmenet.
2016-10-14 23:05:34 +02:00
Martin Schimandl
a4e092a1c4
add cask reinstall command
2016-10-14 19:25:44 +02:00
Paolo G. Giarrusso
aa8242bb66
brew doctor: warn about SSL_CERT_FILE ( #1284 )
...
Multiple issues have been filed about this environment variable, hence
give a warning. #932 might make this unnecessary when merged, but
hopefully this warning can be merged quickly.
2016-10-13 17:58:29 +02:00
Mike McQuaid
62e44a1dac
Merge pull request #1274 from RasPhilCo/patch-1
...
Fix warning for HOMEBREW_REPOSITORY at /usr/local
2016-10-12 20:38:37 +01:00
William Woodruff
5163aa5d21
formula_installer: Remove obsolete hard dependency on cctools.
...
ruby-macho now performs all relocations in Homebrew.
Additionally, delete the defunct CctoolsRequirement.
2016-10-12 15:00:40 -04:00
Mike McQuaid
8efb585684
Merge pull request #1273 from jawshooah/fix-relocate
...
keg_relocate: fix for multiline /usr/bin/file output
2016-10-12 19:08:10 +01:00
RasPhilCo
ec03dcfe95
Fix warning for HOMEBREW_REPOSITORY at /usr/local
2016-10-12 10:33:47 -07:00
Mike McQuaid
fd0dffdd77
Merge pull request #1271 from MikeMcQuaid/deprecate-apr-requirement
...
Deprecate apr requirement.
2016-10-12 18:22:27 +01:00
Josh Hagins
24c2d0b3c2
keg_relocate: fix for multiline /usr/bin/file output
2016-10-12 11:53:06 -04:00
Mike McQuaid
26e4899fde
Deprecate apr requirement.
...
It's not used on enough configurations now that there's little point in
keeping it around. See e.g. `:autoconf` for prior art.
2016-10-12 15:37:33 +01:00
Mike McQuaid
16793781b3
Merge pull request #1269 from MikeMcQuaid/keg-relocate-text-executable-files
...
keg_relocate: relocate text_executable? files.
2016-10-12 12:06:56 +01:00
Mike McQuaid
a812e95417
Merge pull request #1227 from DomT4/apr
...
apr_requirement: use Homebrew's Apr for Sierra
2016-10-12 11:38:57 +01:00
Mike McQuaid
2e306bcde0
keg_relocate: relocate text_executable? files.
...
This was omitted from #1258 , incorrectly fixed in #1267 , reverted in
#1268 and re-applied in this commit.
2016-10-12 11:35:37 +01:00
Mike McQuaid
02c567cb12
Revert "keg_relocate: left out text_executable? check in #1258 "
2016-10-12 11:29:33 +01:00
Mike McQuaid
784b71cb02
Tweak style.
2016-10-12 11:18:14 +01:00
Josh Hagins
72f9515e9b
Merge pull request #1267 from jawshooah/perf/keg-text-executable
...
keg_relocate: left out text_executable? check in #1258
2016-10-12 04:54:12 -04:00
Josh Hagins
6cecc4c03e
keg_relocate: left out text_executable? check in #1258
2016-10-12 04:02:47 -04:00
Mike McQuaid
01a92dd94e
Merge pull request #1262 from MikeMcQuaid/warn-repo-cellar
...
brew.sh: warn on $HOMEBREW_REPOSITORY/Cellar
2016-10-12 08:45:54 +01:00
Josh Hagins
af78b64d5c
Merge pull request #1258 from jawshooah/perf/keg-batch-text-files
...
keg_relocate: run /usr/bin/file in batches
2016-10-12 03:42:22 -04:00
Mike McQuaid
7a3ba92324
Merge pull request #1261 from MikeMcQuaid/tweak-repo-sandbox
...
postinstall: allow write access to cellars in repository.
2016-10-12 08:38:13 +01:00
Markus Reiter
1a01a4d42d
Merge pull request #1264 from reitermarkus/single-language-audit
...
Allow auditing of a single language of a cask.
2016-10-12 08:18:35 +02:00
Josh Hagins
d8a6863283
keg_relocate: use xargs to batch file arguments
2016-10-11 21:19:08 -04:00
Markus Reiter
bb3c689371
Fix CaskCommandFailedError.
2016-10-11 18:27:01 +02:00
Markus Reiter
9eaf221885
Allow auditing of a single language of a cask.
2016-10-11 15:10:12 +02:00
Mike McQuaid
981cac2a2e
brew.sh: warn on $HOMEBREW_REPOSITORY/Cellar
...
If you’re using a /usr/local prefix but e.g. /usr/local/homebrew/Cellar
then you’ll miss out on most binary packages for no good reason so warn
people of that.
2016-10-11 09:37:37 +01:00