aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2016-05-13fix shellcheck complaintXu Cheng
2016-05-13move git shell function to brew.shXu Cheng
git is also used in analytics.sh
2016-05-13brew.sh: use brew update in update-preinstallXu Cheng
Preinstall update should be performed in a separate process, so it can maintain and close its own update lock.
2016-05-13move brew shell function to brew.shXu Cheng
2016-05-12brew pull: fix bogus line that was raising warningAndrew Janke
2016-05-12update: use lockXu Cheng
Closes #181. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-05-12add utils/lock.shXu Cheng
a Bash implementation of lock using `flock(2)`.
2016-05-12ARGV: fix 'value' method, make it more predictableMartin Afanasjew
The fix changes behavior in same cases, but those cases were all either broken or showed unexpected behavior. The new behavior is very simple: - If an argument starts with `--<option-name>=`, return whatever comes after the equals sign. Prior to this change, `ARGV.value` showed some unexpected behavior: - `ARGV.value("foo")` returned `nil` for `--foo=` because at least one character needed to be present after the equals sign. (All other option parser implementations I'm aware of allow for empty values.) - `ARGV.value("bar")` returned `"baz"` for `--foo=--bar=baz` because the regular expression was not anchored to the start of the argument. - `ARGV.value("++")` raised an exception because the string wasn't escaped for use in the regular expression. (An unlikely corner case.) Closes #231. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-05-12formula_installer: fix option-with-value handlingMartin Afanasjew
When passing formula options with value, e.g. `--with-qt=5`, to the child process responsible for building a formula, `ARGV.value` would be invoked with `nil`. Handle this more elegantly (no change in behavior). For consistency, use a regular expression adapted from `Options.create` instead of the somewhat bogus one used before.
2016-05-12pull: insert questionable syntax hackDominyk Tiller
I'm not completely sure this is "sane" logic but I'm leery of just reverting Andrew's work this morning and making him rebuild that PR from scratch for one syntax issue. Sadly, because we run: ``` brew readall --aliases --syntax ``` On every CI job, and that flags this line previously as: ``` pull.rb:555: warning: possibly useless use of a variable in void context ``` Every single PR has "failed" since it was merged, and it's reached the point of being a bit annoying, so let's try this.
2016-05-11cmd/pull: add retry to curl bottle download (#232)Andrew Janke
Works around issue with GET and HEAD apparently acting differently, and bottle downloads failing even after successful polling completion.
2016-05-11brew audit: add --display-filename format option for easy grepping (#221)Andrew Janke
2016-05-10cmd/pull: bump retry count.Mike McQuaid
2016-05-10Move more methods to DevelopmentTools.Mike McQuaid
Closes #1028.
2016-05-09update: fix hyphen counting (legacy tap renaming)Martin Afanasjew
Fix regression introduced in fafe8f0f53bf91fc41f016b5c2af41ca712783f7. Counting the number of hyphens in a string cannot be done in a single expression, thus split this and introduce another local variable. Fixes #227.
2016-05-09update: remove stray comma (legacy tap renaming)Martin Afanasjew
Fix regression introduced in fafe8f0f53bf91fc41f016b5c2af41ca712783f7.
2016-05-09fetch: document --retry option (#225)Martin Afanasjew
2016-05-09extend/os/linux/hardware/cpu: fix typo.Sebastian Staudt
CPU was transformed into a class in 8d995e961f549e555f405d2567235dab53f6baad.
2016-05-09gist-logs: add proper documentation, improve error handling (#217)Jam
2016-05-09Update man page to pick up changes made in #205.Martin Afanasjew
Seems like last-minute changes were made without re-running `brew man`.
2016-05-08compat/macos: fix methods from 'development_tools'Martin Afanasjew
The previous fixes in c6dc50fcf05c8c4956ac86345360fefcb00f664e and ed9f7308b265944c27c833b9a2aaa0e911ff5667 were incomplete as they referenced `DeveloperTools`, but the actual name is `DevelopmentTools`. Also fixes indentation and a broken `MacOS.clang_version` (it was falsely redirecting to `DeveloperTools.llvm_build_version` ). References #219. References #220.
2016-05-08compat/macos: add missing require.Mike McQuaid
Closes #220.
2016-05-08Fix more bad dump_verbose_config referencesMartin Afanasjew
Follow-up to c7edf9a063dce63afb9ab54b6d71fe864d578365 and related to changes from #168.
2016-05-08gist-logs: fix system_config reference.Mike McQuaid
2016-05-08compat/macos: add missing developer_tools methods.Mike McQuaid
Closes #219.
2016-05-08utils/bottles: fix Regexp escaping for Ruby 1.8Martin Afanasjew
Make sure `Regexp.escape` gets a string as Ruby 1.8 is unable to convert the symbol to a string automatically. Related to changes from #168.
2016-05-08tab: fix bad default_compiler referenceMartin Afanasjew
Partially addresses #219. Related to changes introduced in #168.
2016-05-08os/mac/sdk: fix bad locate reference.Mike McQuaid
Closes #216.
2016-05-08pull: fix bottle_tag references.Mike McQuaid
2016-05-08test_integration_cmds: print output on failure. (#213)Mike McQuaid
Makes it easy to debug what’s gone wrong.
2016-05-08tests: add generic flag. (#212)Mike McQuaid
Makes it easier to quickly do tests of the generic/cross-platform backend.
2016-05-08test_integration_cmds: add cleanup test.Mike McQuaid
2016-05-08os/mac/xcode: fix development tools reference.Mike McQuaid
Closes #216.
2016-05-08cleanup: fix bottle reference.Mike McQuaid
Closes #214. Closes #215.
2016-05-08brew.rb: check issues url properly.Mike McQuaid
2016-05-08Make config command cross-platform.Mike McQuaid
Closes #168. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-05-08Make development tools code cross-platform.Mike McQuaid
2016-05-08Make hardware code cross-platform.Mike McQuaid
2016-05-08Make diagnostic code cross-platform.Mike McQuaid
2016-05-08Make bottle code cross-platform.Mike McQuaid
2016-05-08Add support for testing generic OS.Mike McQuaid
If the environment variable HOMEBREW_TEST_GENERIC_OS is set ensure that neither Mac nor Linux-specific code is loaded. This allows easier testing of cross-platform code on OS X and will make it easier to port Homebrew to platforms other than OS X and Linux.
2016-05-07languages: flag missing dependency requirement (#194)Dominyk Tiller
This is in part designed to handle situations described in https://github.com/Homebrew/legacy-homebrew/issues/42273 where we tell someone to install a special dependency, but because we (rightly, IMO) resolve special dependencies first users can end up being told to execute a command on a tool that isn't yet installed and isn't immediately obvious how to install it. In the situation raised there, with the `sile` formula people are being told to `luarocks install xyz` but we hadn't installed Lua for them first, so they just get a `command not found: luarocks` message. Perhaps it should be obvious enough how to install said tools by looking at the formula's dependencies, but it's not a huge burden on us to make life easier than that. Shuffled over from https://github.com/Homebrew/legacy-homebrew/pull/42576.
2016-05-06brew install: make -s apply only to given formula, not deps (#205)Andrew Janke
2016-05-06cmd/fetch: fix typo in docoAndrew Janke
2016-05-06test-bot: only push once when uploading.Mike McQuaid
2016-05-05tab: include installation date in string representationZhiming Wang
This way brew info will include the installation date for each installed version. Closes #196. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-05-05Reorder usage examples for brew helpMartin Afanasjew
- Reorder listed commands to better reflect a typical workflow (search, then query for details via `info` and friends, then install, later update and upgrade, at last maybe uninstall). - Remove niche `pin` and `unpin` commands. - Drop `--env` in the Troubleshooting section. And use `/REGEX/` instead of `/PATTERN/` to be clearer what is expected. Closes #177. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-05-05xcode: avoid invoking 'xcodebuild -version' twiceMartin Afanasjew
This primarily benefits CLT-only systems where invoking the `xcodebuild` wrapper in `/usr/bin` will fail (twice) with the following message: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance Closes #198. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-05-05xcode: fix invalid range in comparisonMartin Afanasjew
Due to a typo, the range of LLVM build versions 2066 to 2325 were never matched and thus Xcode 3.2.0 could never be inferred from that. (Only relevant for legacy systems. Doesn't seem to have impacted any users.)
2016-05-05xcode: expect 7.3.1 on 10.11Martin Afanasjew