aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
AgeCommit message (Collapse)Author
2016-01-21update-bash: use odie and chdir from bin/brewXu Cheng
2016-01-21update-bash: always use `[[`Xu Cheng
2016-01-21update-report: skip non git tapXu Cheng
2016-01-21update-bash: fix incorrect argument parsingXu Cheng
2016-01-21tests: add --only=<test>[/<method>] flagMartin Afanasjew
Simplify running a single test (or even a single method from a single test), which is useful when developing or debugging a test. Instead of `brew test TEST=test_diagnostic.rb TESTOPTS=--name=test_check_DYLD_vars` it is now possible to run `brew tests --only=diagnostic/check_DYLD_vars` to get the same effect. Similarly, `brew tests --only=diagnostic` maps to `brew test TEST=test_diagnostic.rb`. Closes Homebrew/homebrew#48279. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-21tests: allow passing --seed <number>Martin Afanasjew
This parameter is printed by every `brew tests` run and feeding it back into the test suite allows to get an identical run. Make it easier to do that by accepting the argument as it is printed during `brew tests`. This requires a slight adjustment to named-argument passing as the number that follows `--seed` is also seen as a named argument, but we usually only want to pass `TEST=<something>` and `TESTOPTS=<something>`.
2016-01-20command: support .sh commandsBaptiste Fontaine
Closes Homebrew/homebrew#48192. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-20commands: support .sh commandsBaptiste Fontaine
2016-01-20tap-readme: fix for Ruby 1.8Baptiste Fontaine
Closes Homebrew/homebrew#48281. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-20sh: flush stdout before executing the shellBaptiste Fontaine
Closes Homebrew/homebrew#48268. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-19Revert "formula_installed: tweak source build behaviour."Mike McQuaid
This reverts commit 5dd200c6b40f4fa9cc3a70cbc9ca2885e4626943. Closes Homebrew/homebrew#47889.
2016-01-19tests: rm the coverage cache before each runBaptiste Fontaine
Closes Homebrew/homebrew#48209. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-17Search also in Caskroom/versions TapTommy Sparber
Extending the current search functionallity to search in https://github.com/caskroom/homebrew-versions Closes Homebrew/homebrew#47954. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-17formula_installed: tweak source build behaviour.Mike McQuaid
Currently `brew install —build-from-source wget` builds all the dependencies also from source. I can see people wanting to do this when `HOMEBREW_BUILD_FROM_SOURCE` is set by passing it on the command-line is mostly just annoying; it means you have to use `—build-bottle` and deal with the CFLAGS and `post_install` changes if you want to build from source. Tweak `formula_installer` so this behaviour is more intuitive. Closes Homebrew/homebrew#47889. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-17Add new update-bash command for testing.Mike McQuaid
This will become the default updater at a later point in the future.
2016-01-17Rubocop: upgrade to version 0.36.0Bob W. Hogg
Stop using Style/TrailingComma as it is no longer recognized and start using Style/TrailingCommaInArguments and Style/TrailingCommaInLiteral instead. Closes Homebrew/homebrew#48144. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-01-17test-bot: change directory for git rev-parse --verifyXu Cheng
2016-01-17audit_revision: only check 10 recent related commitsXu Cheng
It helps to reduce overhead. Closes Homebrew/homebrew#48108. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-01-17audit: imporve revision check logicXu Cheng
* Check revision decrease against both stable and devel spec. * Check revision reset only for stable spec if stable spec is available.
2016-01-17test-bot: prevent formula building from source multiple timesXu Cheng
After formula updates its bottle block, remove itself from changed formulae list. Therefore, if it's requested next time as dependency, it will be installed from bottle just created. Closes Homebrew/homebrew#48121. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-01-17test-bot: all formula name are canonical nowXu Cheng
2016-01-17test-bot: always use canonical formula nameXu Cheng
Otherwise, we may get incorrect result when preforming set operations on list of formula names.
2016-01-17test-bot: simplify Test#gitXu Cheng
2016-01-17test-bot: remove dead codeXu Cheng
2016-01-17test-bot: simplify Test#initializeXu Cheng
2016-01-15unpack: preserve file attributes like mtimeXu Cheng
Closes Homebrew/homebrew#48068. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-01-15bottle: read source modified time from tabfileXu Cheng
* Avoid unnecessary stage overhead * Support different download strategy, e.g. `git`.
2016-01-14test-bot: fix missing ?Xu Cheng
2016-01-14test-bot: always return tap objectXu Cheng
Also simplify the code and add Travis auto detect. Closes Homebrew/homebrew#48060
2016-01-14audit: enforce revision checkXu Cheng
Add two checks: * revision should be reset to 0 for new version. * revision should not decrease inside the same version interval. Closes Homebrew/homebrew#48032. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-01-14audit: check url/checksum/mirror outside of stable blockXu Cheng
Closes Homebrew/homebrew#48033. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-01-14bottle: merging problem when head conatins commasbigbes
If `head` sections contains commas (e.g. `url "https://github.com/tarantool/tarantool.git", :branch => "1.6", :shallow => false`) then re thinks that it reached the end and inserts `bottle do <-> end` block before it, that leads to problems in ` brew audit --devel tarantool --strict --online`: ``` ==> audit problems tarantool: * `head` (line 11) should be put before `bottle block` (line 7) ``` It blocks Homebrew/homebrew#47495 Closes Homebrew/homebrew#47931. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-12test-bot: restore no-bottle supportDominyk Tiller
This feature is still quite useful, particularly because of the somewhat buggy behaviour of `default_formula` which means when attempting to build a bottle it'll attempt to force the installation of that formula. That is particularly problematic for taps like homebrew/homebrew-fuse because the `default_formula` in osxfuse conflicts with the osxfuse binary we install via the Caskroom, which is actively breaking every CI build. Closes Homebrew/homebrew#48000. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-11audit: check for more unused shorthandDominyk Tiller
Adding a strict check for usage that should be using pkgshare. Pulled onto two unique checks to provide a better problem message, with a clearer solution, but open to thoughts. * Use pkgshare instead of (share/"example") * Use #{pkgshare} instead of #{share}/example Closes Homebrew/homebrew#47900. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-09doctor: simplify handling of slow checksMartin Afanasjew
Some (rather slow) checks should run after all other checks. Make that more obvious by removing them from the sorted list of all checks and then re-appending them to the resulting list. (Should be slightly more efficient than the `<array>.reverse.uniq.reverse` incantation, though that hardly matters given the cumulated run time of all the checks.) Slightly extend the list after verifying what the slowest checks are for various Homebrew installations (slowest check last). Closes Homebrew/homebrew#47753. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-09add Keg#empty_installation?Xu Cheng
Avoid using `FormulaAuditor` in `FormulaInstaller`. Closes Homebrew/homebrew#47887. Signed-off-by: Xu Cheng <xucheng@me.com>
2016-01-09reinstall: add --interactive and --git optionsZhiming Wang
Closes Homebrew/homebrew#47622. Closes Homebrew/homebrew#47647. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-01-08update: abbreviate hashes to at least 7 charactersJoseph Frazier
Abbreviations will be longer if needed to preserve uniqueness. This makes it more consistent with `git rev-parse --short`, https://github.com/Homebrew/homebrew/commits, etc. For example, instead of: Updated Homebrew from 40d1e9c2 to 90b9bdf4. We see: Updated Homebrew from 40d1e9c to 90b9bdf. See 0c48248b6555353c8d60b61973639c8423ce586c for the original introduction of eight-character abbreviations.
2016-01-06list: exclude Ruby from unbrewedMartin Afanasjew
Those are created by the `ruby` formula in core and various Ruby formulae from `homebrew/versions` and contain Gems and other stuff that is to be retained across updates. Treat it like Python in this regard. This avoids spurious output in `brew list --unbrewed` when a brewed `ruby` is used to, e.g., install Gems. Closes Homebrew/homebrew#47750. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-06list: exclude Homebrew logs from unbrewedMartin Afanasjew
Treat it like the cache, i.e., if the logs directory is inside the Homebrew prefix, skip it instead of listing all the logs. This avoids spurious output in `brew list --unbrewed` when the Homebrew logs directory is a subdirectory of the Homebrew prefix.
2016-01-06audit: typoBaptiste Fontaine
2016-01-05doctor: use respond_to? instead of NoMethodErrorBaptiste Fontaine
Closes Homebrew/homebrew#47715. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-05doctor: move code away from cmd/Baptiste Fontaine
Closes Homebrew/homebrew#47665. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-04doctor: add explicit anaconda warningDominyk Tiller
Closes Homebrew/homebrew#47540. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2016-01-04tests: use predefined commit author for robustnessMartin Afanasjew
Some tests, that construct a Git repository for testing, will silently fail if the global Git user isn't properly set up. There are valid use cases for this, thus use a fixed commit author/committer for all tests instead of relying on the user's configuration.
2016-01-04update: avoid unnecessarily recreating 'master'Martin Afanasjew
This only affects the behavior of `brew update` while being on a branch `feature` that doesn't track the upstream branch. For simplicity, the upstream branch is assumed to be called `master` (`@upstream_branch` in the code). Consider the following simplified commit history: master origin/master (current state of remote) | | A---B---C---D---E---F \ G---H---I | feature (HEAD) If `origin/master` is equal to `master` and also points at commit `C`, then `brew update` will update both `master` and `origin/master` to `F` and report on the changes in the range `C..F`. However, if `origin/master` is equal to `E` because some commits have been already fetched with `git fetch origin`, then `brew update` will recreate `master` from `origin/master` and then pull in the commits from the remote to update both to `F`. Because `master` gets recreated from a younger `origin/master`, the report will only contain changes from the range `E..F` (thus omitting the changes from `C..E`). This commit adjusts the logic to not recreate `master` if it can be safely fast-forwarded to `origin/master` (the common case). This fixes the problem from the second scenario and again reports on the desired range `C..F`. Closes Homebrew/homebrew#46951. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2016-01-04cleanup: move code away from cmd/Baptiste Fontaine
Closes Homebrew/homebrew#47484. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-04doctor: extend curl warningDominyk Tiller
2016-01-03config: split conditionalDominyk Tiller
Stops Rubocop moaning about one line conditionals. Closes Homebrew/homebrew#47537. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-12-30cleanup: display total disk space to be clearedRakesh
Closes Homebrew/homebrew#45642. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>