8377 Commits

Author SHA1 Message Date
Chris Tate
fde5b48d83 autocode: rename from crystal
Closes Homebrew/homebrew#44417.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-08 14:26:13 +08:00
Daniel Lee Harple
6b3b398858 audit: fix GitHub repository audit
In the data returned from the GitHub API, “watchers_count” is actually the
number of stars.

See https://developer.github.com/v3/activity/starring/#starring-vs-watching

Closes Homebrew/homebrew#44477.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-07 19:48:24 +08:00
Steven Peters
d3d1b6f0fe Encourage https for bottle hosting
I assume that we want to encourage people hosting
their own bottles to serve them using `https`.
This PR has a trivial change in the example.
We may consider adding some text to the `root_url`
description with a discussion of security.
Also use https://example.com instead of
http://mikemcquaid.com in bottle example.

Closes Homebrew/homebrew#44651.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-07 19:42:02 +08:00
Adrian Moisey
8318500294 Remove extra word
Closes Homebrew/homebrew#44708.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-07 19:33:37 +08:00
Robin Neatherway
0fee65bf12 link_overwrite if the owning keg no longer exists 2015-10-07 17:20:09 +08:00
Andrew Janke
4c80bf4324 audit: add check for 'head' and 'head do' both present
Closes Homebrew/homebrew#44626.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-07 09:41:24 +02:00
Rakesh
2d60187e1a brew upgrade: provides an option --cleanup
Closes Homebrew/homebrew#44305.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-07 14:05:11 +08:00
Baptiste Fontaine
f629bb4e0f command: fail early if no command is given
Closes Homebrew/homebrew#44450.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-06 09:58:05 +02:00
Forrest Fleming
e0f9994542 Remove incomplete files in cache on brew cleanup
Closes Homebrew/homebrew#44182.
Closes Homebrew/homebrew#44349.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-06 15:13:25 +08:00
Dominyk Tiller
9ae6f6d3ac mbedtls: renamed from polarssl 2015-10-06 03:35:26 +01:00
Baptiste Fontaine
cc7a047edc version: parse opam archives
Closes Homebrew/homebrew#44544.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-04 10:31:46 +02:00
Todd A. Jacobs
5f29dee138 Remove redundant chown commands.
`chown -R` should be sufficient. There is no obvious reason to chown the top-level directory as a separate command.

Closes Homebrew/homebrew#44554.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
2015-10-03 11:14:48 -07:00
Michka Popoff
8f072724de Remove MacVTKITKPythonBottles from doc
Bottles for VTK and ITK python are no more provided.

ITK can be wrapped with Python since version 4.8, so this tap
is no more needed. Using the vanilla homebrew VTK and ITK formulas is
the way to go.

Closes Homebrew/homebrew#44467.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
2015-10-02 21:52:55 -07:00
Dominyk Tiller
bdd27d7cc0 doctor: whitelist Paragon NTFS dylib
Closes Homebrew/homebrew#44542.
2015-10-02 23:43:14 +01:00
Charlie Egan
a90363b605 doctor: minor grammar correction: 'pluralize' breakage
Closes Homebrew/homebrew#44497.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-02 19:06:05 +02:00
Baptiste Fontaine
b1892f360c sedna: migrate to boneyard
Closes Homebrew/homebrew#44451.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-02 07:58:19 +02:00
Dominyk Tiller
ab19bc641c El_Capitan_and_Homebrew: update dead link 2015-10-01 20:58:30 +01:00
Xu Cheng
6b3704162f doctor: point Xcode download to App Store for El Capitan 2015-10-01 14:39:25 +08:00
Dominyk Tiller
f5fd1c3c57 xcode: document xcode 7 2015-10-01 05:56:09 +01:00
Dominyk Tiller
0024296480 xcode: expect xcode 7.0.1 2015-10-01 05:54:14 +01:00
Dominyk Tiller
be8d348a6d os: add xcode 7.0.1 2015-10-01 05:51:35 +01:00
Xu Cheng
3b520cf195 cache taps
There are plenty of IO operations inside Tap object, and it will be more
when implementing formula alias reverse look up(e.g. list all of alias
names for a formula). So let's cache them.

Some benchmark:

$ time brew info $(brew ruby -e 'puts Formula.tap_names') > /dev/null
Before: 6.40s user 2.42s system 96% cpu 9.134 total
After: 4.75s user 0.77s system 97% cpu 5.637 total

Closes Homebrew/homebrew#44377.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-30 16:25:30 +08:00
Xu Cheng
6240e896b2 doctor: always print to stderr
This can help to solve the broken layout of doctor.out in brew gist-logs
2015-09-30 16:20:18 +08:00
Xu Cheng
30795ddc29 doctor: temporary add -R flag in chown instruction
Will replace it when we implemented `brew repair-permission`
2015-09-30 13:55:32 +08:00
Xu Cheng
e66cb91702 update: add permissions check
Closes Homebrew/homebrew#42048

Closes Homebrew/homebrew#44434.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-30 13:54:04 +08:00
Xu Cheng
ff132a9ddb doctor: add check_access_homebrew_repository 2015-09-30 13:54:04 +08:00
Xu Cheng
3c54d12cec doctor: official supporting El Capitan 2015-09-30 13:54:04 +08:00
Christian Moritz
25eac715d0 iojs: move to versions
Closes Homebrew/homebrew#44441.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-09-30 03:49:52 +01:00
Dominyk Tiller
04959403ac Python-for-Formula-Authors: use sha256 for example 2015-09-28 19:14:51 +01:00
Xu Cheng
767d961824 ENV#userpaths!: ensure Superenv.bin and opt path come at first
This ensures that binaries in /usr/local/bin would not overwrite
superenv.

Closes Homebrew/homebrew#44376.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-28 21:47:04 +08:00
Xu Cheng
b37a285141 test-bot: fix start_revision for Travis
When a PR is merged during the test, the commit tree will be looked like
this:

master  PR
  \     /
    \ /
     |
    root

The start_revision will be poined to the commit used to merging PR,
instead of common root commit. As result, `git diff-tree start end`
will list file changes both in PR and master branch, which later
contributes to additional formulae are tested in some Travis builds.

To fix the problem, we use `git merge-base` to get common ancestor as
the real start_revision.

Closes Homebrew/homebrew#44379.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-28 21:46:59 +08:00
Xu Cheng
79f71ca2ef travis: fix Could not parse object TRAVIS_COMMIT
If a PR is edited(e.g. force pushed) during the build.
TRAVIS_COMMIT will be lost. Refetching the merge ref wouldn't
help this situation as well. Since Travis already have reset
$TRAVIS_BUILD_DIR to the commit we need to test, let's use it to
determine TRAVIS_COMMIT directly.

Ref: https://github.com/travis-ci/travis-ci/issues/2666
2015-09-28 21:46:58 +08:00
Xu Cheng
1b33c70d46 FormulaInstaller: cleanup files when pouring bottle failed
Closes Homebrew/homebrew#44325.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-26 13:51:56 +08:00
Xu Cheng
7b97dca554 use skip_deps_check? instead of ignore_deps? hack
We previously set `ignore_deps?` as true for DependencyInstaller to
avoid duplicated dependencies resolution. (See a9fc82aea30506eeacbddeb8b53fb85de8acb9d4)

However, this will cause problem when pouring bottle of a dependency is
failed. In this case, it will try to build dependency from source but
failed due to uninstalled build deps for this formula.

Another disadvantage for using `ignore_deps?` hack is we cannot
distinguish users passing `--ignore-dependencies` flag from we are in
`DependencyInstaller`.

So, let's differentiate these using `skip_deps_check?`
2015-09-26 13:51:56 +08:00
Xu Cheng
5045fc95bf FormulaInstaller: raise if pouring bottle failed and no Xcode/CLT installed 2015-09-26 13:51:56 +08:00
Mike McQuaid
be45e6a0c5 migrator: link Cellar and opt before the keg.
When there's absolute symlinks in a linked directory in the `keg`
(e.g. `bin`)that point to the `Cellar` or `opt` then linking the `keg`
will fail before the `Cellar` or `opt` has been linked.

Closes Homebrew/homebrew#44306.

Closes Homebrew/homebrew#44329.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-25 16:53:34 +01:00
Mike McQuaid
d0cfad03dd travis.yml: always run git reset --hard once. 2015-09-25 15:51:22 +01:00
Mike McQuaid
74a2c3a509 test-bot: add comments, tweak argument handling. 2015-09-25 09:15:10 +01:00
Mike McQuaid
5a11970d63 travis.yml: try to refetch PR commit if missing. 2015-09-25 08:39:13 +01:00
Xu Cheng
afff98d700 travis: run --ci-master for non-PR
Closes Homebrew/homebrew#44302.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-24 20:35:26 +08:00
Xu Cheng
a3bb757507 travis: organize matrix config 2015-09-24 20:35:26 +08:00
Xu Cheng
c3813230c1 Formula#system: fix log output for travis 2015-09-24 16:44:39 +08:00
Mike McQuaid
711e079901 Export more Travis debugging and fix Git issue. 2015-09-24 08:33:08 +01:00
Alex Gaynor
00480edf9d docker-compose: renamed from fig 2015-09-24 03:34:41 +01:00
Dominyk Tiller
87769ee970 style: update rubocop to 0.34.2 2015-09-24 02:18:50 +01:00
Mike McQuaid
f154f4898a bottle: output maximum number of strings matches.
`brew bottle --verbose` outputs all the matches for a string found
in the files inside the Cellar. Instead of outputting all of these just
output the first 100.

Closes Homebrew/homebrew#44266.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-23 15:17:35 +01:00
Xu Cheng
322a93bce0 test-bot: use IO#read instead of IO#gets
IO#gets will only return for every new lines, which will be bad for
`brew install` since we print dots in single line.

Closes Homebrew/homebrew#44264.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-23 21:46:45 +08:00
Xu Cheng
8c9f0120ca Formula#system: print dot for travis 2015-09-23 21:46:44 +08:00
Mike McQuaid
9c5427d9a9 travis.yml: retry git fetch. 2015-09-23 21:46:44 +08:00
Mike McQuaid
a782406cc3 travis.yml: check /usr/local permissions. 2015-09-23 21:46:44 +08:00