aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
AgeCommit message (Collapse)Author
2016-04-07always prefer HOMEBREW_CURL over plain 'curl'Martin Afanasjew
2016-04-06test-bot: add safety margin to output truncation sizeAndrew Janke
2016-04-06test-bot: stop using --recursive for `brew uses`Dominyk Tiller
We're not sure this is working as it was intended to, and the primary end product so far has been making every Ruby 1.8.7 build, which is the Ruby we use on Mavericks for compatibility, take 5-15 minutes longer per build than 2.x Rubies. Cumulatively this is responsible for the vast majority of CI slowness over the last couple months as Mavericks plays catch-up and everything else waits for it to do so. We may revisit this in future, but for now the harm is greater than the "risk". This technically reverts https://github.com/Homebrew/brew/commit/7b26c585c2a26ec0dad201852ca4934c77fcc493.
2016-04-06prune: handle broken app symlinksMartin Afanasjew
Remove broken symlinks from `/Applications` and `~/Applications` that were previously created by `brew linkapps`, but are no longer valid because formulae were uninstalled or the provided apps have changed.
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-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-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-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-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-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-03Revert "lsyncd: use MACOS_FULL_VERSION"Xu Cheng
This reverts commit 0f60f76f26ca9fe26e1c10c72905a878a58e3c96.
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-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-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-02tap-(un)pin/untap: better error messageXu Cheng
Closes Homebrew/homebrew#49904. Signed-off-by: Xu Cheng <xucheng@me.com>
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
2016-04-02git: check homebrew/core existence before installing brewed gitXu Cheng
2016-04-02--version/config: show core tap informationXu Cheng
2016-04-02audit/test-bot/pull: fix for core/formula separationXu Cheng
All formulae are in taps now.
2016-04-02update-report: update for core/formula separationXu Cheng
Update the report logic, since now all formulae are in the taps.
2016-04-02remove migrate_tapsXu Cheng
We don't need to migrate the tapped formulae from symlink-based to directory-based structure any more. Instead, we add core tap install check for `brew update-report` which will be invoked by `brew update`.
2016-04-02various: Homebrew/core is the core tapXu Cheng
Also make `Homebrew/homebrew` as an alias of this tap to keep backward compatibility.
2016-03-28utils, gist-logs: improve/fix credential handling.Mike McQuaid
The API used (`Net::HTTP::Post`) does not handle basic authentication credentials in the same way as `open` so fix both cases so they work. Also, do some general usability tweaks to point out to people what could be wrong with their tokens or credentials to help them debug. Closes Homebrew/homebrew#50410. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-03-24--repository: support to show tap pathXu Cheng
This can become handy when we separate core code and formulae. For example, we could use `cd $(brew --repo homebrew/core)` to go to core tap path. Closes Homebrew/homebrew#50346. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-03-21update: use git from ENV/scm/gitXu Cheng
The idea is to let `scm/git` to handle all of git location resolution throughout Homebrew codebase. Closes Homebrew/homebrew#50116. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-03-20Revert "brew fetch: only include sha256 in output"Xu Cheng
This reverts commit 0b38f9b286bc61e2b2d2232f80ea8ebc5909fb07.
2016-03-19Improve error message for invalid regex to searchSam McTaggart
Fixes https://github.com/Homebrew/homebrew/issues/50131 This commit removes the error backtrace and improves the error message if a bad regexp is passed to `brew search`. Closes Homebrew/homebrew#50173. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-03-14Revert "test-bot: better xml character filtering"Xu Cheng
This reverts commit 7032591bd44a8f50aaa55574ac97cd5cb7261460 and commit 946c6deb4b5168ad2ec15e62aa6e81181e9e246c.
2016-03-14test-bot: fix encoding caused by UTF-8 regexXu Cheng
2016-03-14test-bot: better xml character filteringXu Cheng
Ref: - http://www.w3.org/TR/xml/#charsets - http://stackoverflow.com/a/14323524 Closes Homebrew/homebrew#50092. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-03-14brew fetch: only include sha256 in outputAndrew Janke
Closes Homebrew/homebrew#50067. Signed-off-by: Andrew Janke <andrew@apjanke.net>