aboutsummaryrefslogtreecommitdiffstats
path: root/Library
AgeCommit message (Collapse)Author
2016-04-06unlinkapps: add --dry-run optionMartin Afanasjew
Add `--dry-run` option as is customary for destructive commands. Update `bash` completion and man page accordingly. Also correct and update documentation for both `brew linkapps` and `brew unlinkapps` in more general terms.
2016-04-06unlinkapps: modernizeMartin Afanasjew
Simplify code by using `Pathname` methods as much as possible. Also avoid calling external commands for basic functionality like unlinking, reduce code duplication by using a method from `cmd/linkapps.rb`, count unlinked symlinks with `ObserverPathnameExtension`, and adjust output for consistency with `brew linkapps`.
2016-04-06linkapps: modernizeMartin Afanasjew
Simplify code by using `Pathname` methods as much as possible. Also avoid calling external commands for basic functionality like symlink creation, refactor code that can be shared with `brew unlinkapps`, and print a summary line at the end (if symlinks were created).
2016-04-06brew.sh: make analytics 'curl' fully asynchronousMartin Afanasjew
If analytics are enabled and `brew` is used in a command substitution context, e.g. `brew search` for tab completion, the result is that even though the Google Analytics `curl` process runs in the background it still is attached to the captured `stdout`, thus could theoretically contribute to the result of the command substitution and consequently makes the command substitution block on the completion of this process. Redirecting `stdout` (and `stderr` for good measure) to `/dev/null` makes this process truly asynchronous in these contexts. Furthermore, even if the process is in the background, it is still included in the shell's job list and thus shell internals like `wait` (used in `cmd/update.sh`) have to wait on this process, even if they never intended to do so. Removing the analytics process from the job list via `disown` avoids this unintended effect. Fixes #29. Closes #34. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-04-06test-bot: fix access to relocated methodMartin Afanasjew
Fix bug introduced in a2c23dfec569c6e73d90cb20c7d4c26cced258d5. Moving this method apparently made it inaccessible from `Homebrew::Step`.
2016-04-06test-bot: fix undefined method errorMartin Afanasjew
The method `fix_encoding!` is private to `Homebrew::Step` but is also required by the `Homebrew.sanitize_output_for_xml` method for truncating overly long logs. Move `fix_encoding!` into the `Homebrew` module to make it accessible from both this method and the `Homebrew::Step` class. This amends commit 343091c828d1e572829b86253d79b326c1986bcd.
2016-04-05audit: require plist_options when using plistDominyk Tiller
Closes #19. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-04-05test_cmd_audit: add plist testDominyk Tiller
2016-04-05audit: check plist placementDominyk Tiller
2016-04-05Merge pull request #27 from apjanke/test-bot-xml-filterAndrew Janke
test-bot: revise Step output transcoding and XML character filtering
2016-04-05FileUtils::mktemp pass gid to Etc.getgrgid as intilovezfs
We need to move the Snow Leopard fix down since Etc.getgrgid can't handle a string. Closes #31. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-04-05tap: support --full even if installedilovezfs
Makes `tap` re-runnable and unshallows when requested with `--full`. Tapping with a different URL raises an exception. The homebrew/core tap cannot be untapped with `untap` so running `brew tap --full homebrew/core` is now a built-in way to get a full clone of this tap without resorting to workarounds. Closes #17. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
2016-04-05CoreTap#install: fix clone target settingXu Cheng
When invoking `brew tap homebrew/core`, the input options will be like `{ :clone_target => nil }`. This renders `Hash#merge` a dead operation. It doesn't impact Homebrew itself, but could cause problem for downstream projects Linxubrew/Tigerbrew when they adopt core/formula separation.
2016-04-05Formula#path: update docXu Cheng
Formulae are all in taps now.
2016-04-05Revert "test-bot: revise Step output transcoding and XML character filtering"Dominyk Tiller
This reverts commit ceed6636d6986bb2b993ba4680ae484deb76ae29. ``` ==> git clean -ffdx HEAD is now at ceed663 test-bot: revise Step output transcoding and XML character filtering Removing Library/Homebrew/test/.bundle/ Removing Library/Homebrew/test/fs_leak_log Removing Library/Homebrew/test/vendor/ Error: invalid regular expression: /[^ -uD7FFuE000-uFFFDu{10000}-u{10FFFF}]/ ``` Using Ruby 1.8.
2016-04-04test-bot: revise Step output transcoding and XML character filteringAndrew Janke
Closes #24. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-04Make new keep? superenv logic opt-inMisty De Meo
Closes #50425. Signed-off-by: Misty De Meo <mistydemeo@github.com>
2016-04-04superenv: filter -I/-L paths on dependenciesMisty De Meo
Previously, superenv did not try to filter -I or -L flags based on the list of requested dependencies; as a result, buildsystems which opportunistically discover Homebrew-installed libraries were able to link against them even under superenv. This adds a list of all requested dependencies to the superenv environment, and compares all -I and -L flags against those; any Cellar and opt paths found which resolve to unrequested dependencies are filtered out.
2016-04-04utils/analytics: fix usage of undefined variable.Carlos D'Agostino
2016-04-04formula_installer: report install attempts.Mike McQuaid
Closes https://github.com/Homebrew/legacy-homebrew/pull/50462.
2016-04-04brew.rb: report some exceptions.Mike McQuaid
2016-04-04utils: add analytics functions.Mike McQuaid
2016-04-04Add opt-in Google Analytics.Mike McQuaid
Add the first Google Analytics usage to monitor the command names that are run by Homebrew.
2016-04-04Make Homebrew user agent consistent, use a slash.Mike McQuaid
Generally it seems user agents are all `software/version` but ours is not. Also, set the user agent in a way that it's shared between Bash and Ruby code. Closes https://github.com/Homebrew/legacy-homebrew/pull/50480.
2016-04-03brew search: fix `--desc` regressionAndrew Janke
Fixes homebrew/homebrew-core#22 Closes #12. Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-04Mention the haskell-platform caskMax Nordlund
2016-04-04GitHub: fix issues/pr searchingXu Cheng
Closes #6.
2016-04-03Revert "lsyncd: use MACOS_FULL_VERSION"Xu Cheng
This reverts commit 0f60f76f26ca9fe26e1c10c72905a878a58e3c96.
2016-04-03BuildError: update for core/formula separationXu Cheng
2016-04-03test-bot: remove update-testXu Cheng
2016-04-03pull: fix --legacy for legacy-homebrew repoXu Cheng
2016-04-03Update documentation after repository split.Mike McQuaid
2016-04-03diagnostic: point to new remoteXu Cheng
2016-04-03Core/formula separation Part 2(b)0.9.9Xu Cheng
* move shell completion scripts to where can be auto picked up Let's use switching new remote as opportunity to put shell completion scripts to where they should be and avoid git conflict during the process. * add Library/Formula and Library/Aliases symlinks Formulae and Aliases has been relocated to homebrew/core tap. The symlinks are pointed to new location to keep backward compatibility. * remove formula_renames and tap_migrations They have been replaced by the json files in the core tap. * update: set new remote * bump Homebrew version to 0.9.9
2016-04-03test-bot: exclude Taps dir from root cleanupAndrew Janke
2016-04-03test-bot: have --cleanup clean core repo as well as tested tapAndrew Janke
Fixes Homebrew/homebrew#50651
2016-04-03test-bot: fix path in cleanup_beforeXu Cheng
We should remove PR lock files in the test tap rather than HOMEBREW_REPOSITORY.
2016-04-03pull: fix --legacy when pulling bottle from new repoXu Cheng
2016-04-03Revert "test-bot: clean up on Jenkins before building PR"Martin Afanasjew
This reverts commit 51e4e6490bda0d981afd1787a6392ab588b0601c. This did not work as intended, as the `git` command is executed in the context of the tap the current job operates on, never for Homebrew/homebrew itself.
2016-04-03test-bot: clean up on Jenkins before building PRMartin Afanasjew
Wipe everything from the Homebrew prefix except for the `Library/Taps` directory to avoid having to refetch `homebrew/core` every time.
2016-04-03diagnostic: improve check for 'install_name_tool'Eric Vantillard
`install_name_tool` location depends on the location of the active developer directory managed by `xcode-select`. Closes Homebrew/homebrew#50509. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-04-03test-bot: ensure tap is full cloneXu Cheng
2016-04-03test-bot: fix CI upload for core tapXu Cheng
2016-04-03pull: auto fix legacy closes messageXu Cheng
2016-04-03pull: fallback to old BrewTestBot git repo when necessaryXu Cheng
2016-04-03test-bot: handle legacy formulae PR from Homebrew/homebrewXu Cheng
Closes Homebrew/homebrew#50635. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-04-02doc: update for core/formula separationXu Cheng
Closes Homebrew/homebrew#50632. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-04-02tap-(un)pin/untap: better error messageXu Cheng
Closes Homebrew/homebrew#49904. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-04-02update-test: fix git fork bombXu Cheng
2016-04-02pull: add --legacy flagXu Cheng
It will pull legacy formula PR from Homebrew/homebrew TODO: remove it when it's not longer necessary