8416 Commits

Author SHA1 Message Date
Xu Cheng
635340e32e bottle: allow updating :any to :any_skip_relocation when keep old
Closes Homebrew/homebrew#43849.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-12 18:26:16 +08:00
Xu Cheng
ed87972e2d bottle: only set prefix if un-relocatable
Closes Homebrew/homebrew#43819.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-12 01:39:00 +08:00
Xu Cheng
e23cca8d84 bottle: auto detect any_skip_relocation 2015-09-12 01:39:00 +08:00
Xu Cheng
d911b5689a keg_relocate: split relocate_install_names and relocate_text_files
For bottle with `:any_skip_relocation`, relocating text files is
required.
2015-09-12 01:38:59 +08:00
Xu Cheng
7ce0a2dedb test-bot: check ARGV.include?("--skip-homebrew") once 2015-09-11 22:44:00 +08:00
Xu Cheng
e52a12a8b5 test-bot: fix syntax error 2015-09-11 22:36:27 +08:00
Mike McQuaid
96be0c2724 test-bot: skip some unnecessary tests. 2015-09-11 15:29:16 +01:00
Mike McQuaid
3e12ffa6a7 test-bot: support uploading keep-old bottles. 2015-09-11 15:09:24 +01:00
Mike McQuaid
cfc6f737f3 pull: allow pulling all testing jobs. 2015-09-11 14:59:46 +01:00
Xu Cheng
55616a4d01 bottle: improve --keep-old error message for merge as well 2015-09-11 18:36:40 +08:00
Xu Cheng
fe204fdf4b bottle: fix output for absolute symlinks
Closes Homebrew/homebrew#43816.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-11 18:32:35 +08:00
Xu Cheng
5241932b45 keg_relocate: fix absolute symlink 2015-09-11 18:32:35 +08:00
Mike McQuaid
6d6daae050 bottle: improve --keep-old error message. 2015-09-11 11:16:15 +01:00
Mike McQuaid
b1ff9c42d6 update: fix when HEAD doesn't exist.
e.g. when it's a detached `HEAD` through checking out a commit rather
than a branch.
2015-09-11 11:00:27 +01:00
Mike McQuaid
664e9e844a test-bot: add keep-old argument.
Will be useful for creating El Capitan bottles.
2015-09-11 10:15:21 +01:00
Xu Cheng
70f2b6f195 bottle: allow to keep old bottle specification
Closes Homebrew/homebrew#43766.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-11 14:17:28 +08:00
Xu Cheng
fb1789ad3d bottle: use if-else branch instead of exit 2015-09-11 14:17:28 +08:00
Tim D. Smith
c7d82a3881 env block is not inherited 2015-09-10 23:10:26 -07:00
Tim D. Smith
5997812ed2 Revert "python_requirement: fix ENV for python3"
This reverts commit 85271644b0083cbc0fd6fea71120d1ad859fbc2a.

Alex noticed that setting PYTHONPATH causes weirdness if we depend_on
something which may be optionally built --with-python3; PYTHONPATH
unexpectedly contains python3 modules in the depending formula if
the formula upon which it depends was built --with-python3 even
though the depending formula may only use python2.

Closes Homebrew/homebrew#43724. Closes Homebrew/homebrew#43744.
2015-09-10 23:10:26 -07:00
Xu Cheng
0357673f21 config: fix ruby path for ruby 1.8 2015-09-10 15:44:46 +08:00
Xu Cheng
43ba72fb57 descriptions: use each instead of map 2015-09-10 13:38:51 +08:00
Xu Cheng
c75207c1e0 desc: print descriptions directly by formulae instead of cache
We allow passing formulae by URL, file path, etc whose descriptions won't be cached

Closes Homebrew/homebrew#43726.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-10 13:37:58 +08:00
Xu Cheng
65996b5887 use json to cache descriptions
We need to use `atomic_write` when saving the cache. And it seems that
CSV module doesn't support dump, so let's use JSON instead.
2015-09-10 13:37:58 +08:00
Xu Cheng
c5536e1e08 Descriptions.cache_formulae: secure formulae loading 2015-09-10 13:37:58 +08:00
Xu Cheng
71be19235f Descriptions.cache_fresh?: return early 2015-09-10 13:37:58 +08:00
Xu Cheng
80514ee5d7 desc: better way to handle options
We allow to use options like --verbose and --debug for all commands.
And we should support switch format options, e.g. `brew desc -vs foo`
2015-09-10 13:37:57 +08:00
Xu Cheng
12a4cf3808 config: read ruby/python interpreter directly
Closes Homebrew/homebrew#43750.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-10 13:37:14 +08:00
Dominyk Tiller
9dc461cb9f style: update rubocop 2015-09-09 15:58:33 +01:00
Xu Cheng
63246fbc6c config: show all installed JDK
Closes Homebrew/homebrew#43730.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-09 20:44:09 +08:00
Mike McQuaid
657f4ca2ce rubocop: allow consistent trailing commas.
Makes diffs nicer. Could maybe be changed to `comma` to be stricter.
2015-09-09 09:42:21 +01:00
Mike McQuaid
312abc620c test-bot: don't output bottle output on success.
This can be extremely verbose and destroys the log. Instead look for
this in the Jenkins build test results.
2015-09-09 09:36:40 +01:00
Xu Cheng
3638c057f0 FormulaInstaller: reset git_available? when installing git
Closes Homebrew/homebrew#43693

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-09 12:22:03 +08:00
Xu Cheng
2b835551d7 info: improve github_info
* use Homebrew.git_origin
* Handle the case git is unavailable or `.git` doesn't exist
* Handle the case origin isn't github repo
2015-09-09 12:21:24 +08:00
Xu Cheng
c8efb05826 doctor: use Utils.git_available? instead of git? 2015-09-09 12:21:08 +08:00
Xu Cheng
bff03ee5ba doctor: use Homebrew.git_origin 2015-09-09 12:19:17 +08:00
Xu Cheng
31ddce85e7 Homebrew.git_*: check git available 2015-09-09 12:19:17 +08:00
Xu Cheng
aae5b4f721 config: use Homebrew.git_origin 2015-09-09 12:19:16 +08:00
Xu Cheng
4529df1246 git_available?: cache the result 2015-09-09 12:19:16 +08:00
Xu Cheng
1b531492ca utils: add Homebrew.git_origin 2015-09-09 12:19:16 +08:00
chdiza
edbb3a9e53 Use system tar for bottle TOC inspection
Closes Homebrew/homebrew#43717.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2015-09-08 15:51:01 -07:00
Dominyk Tiller
48ba192a3b formula_support: add Pre El Capitan keg_only 2015-09-08 15:28:22 +01:00
Dan Martinez
8374374168 Improve description searching and add a cache.
Closes Homebrew/homebrew#42281.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-08 15:23:37 +01:00
Tomasz Pajor
c4ceaabfc1 style: update to rubocop 0.34.0.
Closes Homebrew/homebrew#43650.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-08 15:08:46 +01:00
Xu Cheng
8a1495ef40 config: use quiet_system
Closes Homebrew/homebrew#43691.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-08 17:36:29 +08:00
Xu Cheng
e3299bb7a3 quiet_system: don't print cmd even when verbose mode
It's kinda annoying that quiet_system wasn't really quiet. This commit
fixes that.
2015-09-08 17:36:28 +08:00
Xu Cheng
67c3f8ff27 audit: cache formula names during audit_formula_name
Before `audit_formula_name: 15.094845999999986`
After `audit_formula_name: 0.5617120000000043`

Closes Homebrew/homebrew#43663.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-08 11:04:49 +08:00
Xu Cheng
e370f005c0 audit: simplify remote_official_taps 2015-09-08 11:04:49 +08:00
Mike McQuaid
adc077f188 doctor: don't always fail on 10.11.
Do this just for Homebrew developers (and the bot) currently.
2015-09-07 15:06:11 +01:00
Mike McQuaid
0a39474bcf Add El Capitan testball bottle. 2015-09-07 15:04:16 +01:00
Josh Hagins
f431e543a5 update: explicitly no-ff merge and rebase.
This overrides user configuration which may do otherwise.

Closes Homebrew/homebrew#41570.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-07 12:05:20 +01:00