Xu Cheng
61c8f69c25
add Formulary.from_contents
2015-09-06 20:47:04 +08:00
Xu Cheng
ff0f6598ce
Formulary: allow loading formula from contents
2015-09-06 20:47:03 +08:00
Mike McQuaid
cbb91c5516
exceptions: handle HOMEBREW_NO_GITHUB_API case.
...
Closes Homebrew/homebrew#43618 .
2015-09-06 13:30:02 +01:00
Mike McQuaid
881d68d355
tap-readme: create README in tap path.
2015-09-06 13:21:21 +01:00
Xu Cheng
f279a13977
formula_installer: fix syntax warning
...
Library/Homebrew/formula_installer.rb:636: warning: shadowing outer local variable - conflict_file
Library/Homebrew/formula_installer.rb:636: warning: shadowing outer local variable - backup_file
Closes Homebrew/homebrew#43602 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-06 20:15:38 +08:00
Xu Cheng
db2552828b
test_integration_cmds: fix syntax warning
...
Library/Homebrew/test/test_integration_cmds.rb:68: warning: ambiguous first argument; put parentheses or even spaces
2015-09-06 20:15:38 +08:00
Xu Cheng
b38498d9dc
outdated: fix syntax warning
...
Library/Homebrew/cmd/outdated.rb:27: warning: shadowing outer local variable - dir
2015-09-06 20:15:38 +08:00
Xu Cheng
ffdede2ac4
readall: put nostdout in outter layer
...
The previous code would fail to reset stdout after thread jobs are finshed.
2015-09-06 20:15:37 +08:00
Xu Cheng
7f3e3b5256
test-bot: check aliases
2015-09-06 20:15:37 +08:00
Xu Cheng
1555edf4d6
readall: add --aliases
2015-09-06 20:15:37 +08:00
Alex Dunn
818c65542d
remove Formula#file_modified?
...
It's been more trouble than it's worth.
Fixes Homebrew/homebrew#43607 .
Closes Homebrew/homebrew#43049 .
Closes Homebrew/homebrew#43615 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-06 13:13:59 +01:00
Xu Cheng
488aa19d8f
doctor: use inject_file_list
...
Also simplify the condition branch by early return
Closes Homebrew/homebrew#43574 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-06 20:02:31 +08:00
Jan Lehnardt
93f7ef6f42
download_strategy: add Apache mirror lua.
...
The ASF now has a preferred .lua mirror script on top of the .cgi file
Closes Homebrew/homebrew#43521 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-06 12:44:00 +01:00
Vlad Shablinsky
7d573034bb
mpich: rename from mpich2
...
Closes Homebrew/homebrew#42945 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-06 12:37:36 +01:00
Vlad Shablinsky
52536c1f9e
gperftools: rename from google-perftools
...
Closes Homebrew/homebrew#42944 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-06 12:36:38 +01:00
Xu Cheng
5eab79e70f
manpage: add unlink --dry-run
2015-09-06 15:37:47 +08:00
Xu Cheng
9581ab64e3
Keg#unlink: prune directory for dry_run as well
2015-09-06 15:31:09 +08:00
Ethan Piekarski
eff3d21350
Added --dry-run to unlink
...
Closes Homebrew/homebrew#43561 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-06 15:25:36 +08:00
Xu Cheng
8830e401a9
formula_installer: check has_apple_developer_tools? once
...
Closes Homebrew/homebrew#43534 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-06 15:00:45 +08:00
Dominyk Tiller
b505c65b78
xcode: update 10.11 clang expectation
2015-09-04 20:19:34 +01:00
Daniel Lee Harple
666ffe5a63
caveats: wrap elisp caveats
...
Closes Homebrew/homebrew#43517 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-04 16:03:48 +08:00
Vlad Shablinsky
a29832484c
fix style problems in migrator
...
Closes Homebrew/homebrew#43473 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-03 13:58:25 +08:00
Alex Dunn
23142bb226
tips-n-tricks: don't encourage sudo
...
Closes Homebrew/homebrew#43363 .
Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
2015-09-02 20:34:54 -07:00
Alex Dunn
fa1cc67e9f
tips-n-tricks: misc. edits
2015-09-02 20:34:10 -07:00
Alex Dunn
859be3c948
tips-n-tricks: document HOMBREW_INSTALL_BADGE
2015-09-02 20:30:59 -07:00
Alex Dunn
9bd3e1eeab
tips-n-tricks: add homebrew-mode to editor plugins
2015-09-02 20:30:59 -07:00
Alex Dunn
091d97255e
progress 0.8
...
Renamed from 'cv'.
Closes Homebrew/homebrew#42984 .
2015-09-02 11:59:46 -07:00
Martin Afanasjew
1c37ea2b73
rubocop: re-enable whitespace-related cops
...
The referenced issue was fixed in Rubocop 0.30.0 (Homebrew uses 0.33.0).
Closes Homebrew/homebrew#43515 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-03 02:41:55 +08:00
Xu Cheng
190902e98f
tap: ensure git is installed
...
Closes Homebrew/homebrew#43463 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-02 15:24:53 +08:00
Xu Cheng
03f7e19ca6
update: ensure git is installed
2015-09-02 15:24:53 +08:00
Xu Cheng
faa6334774
Formula#file_modified?: use Utils.git_available?
2015-09-02 15:24:52 +08:00
Xu Cheng
8d5c445daa
homebrew_version_string: check git available
2015-09-02 15:24:52 +08:00
Xu Cheng
71f794260b
add git utils
...
Two methods:
* `Utils.git_available?` checks whether git is installed.
* `Utils.ensure_git_installed!` installs git for users who don't install
Xcode or CLT.
2015-09-02 15:24:52 +08:00
Alex Dunn
370df177c4
python_requirement: fix ENV for python3
...
Closes Homebrew/homebrew#43453 .
2015-09-01 13:00:01 -07:00
Xu Cheng
01d7f4e766
remove Requirement#pour_bottle?
...
It's never used since a0a93f1b3b7b2be9b8a319be91086ffe220f8e32.
Closes Homebrew/homebrew#43462 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-09-01 19:19:13 +08:00
Alex Dunn
79ea14b738
cmd/search: fix filtering of aliases in results
...
By directly modifying the results array with
`results[i] = "#{name} (installed)"`, it appeared on successive
iterations that the canonical name was no longer in the array, so
aliases were not removed.
See 9efe5b554c (commitcomment-12969631)
Closes Homebrew/homebrew#43433 .
2015-08-31 07:54:59 -07:00
Baptiste Fontaine
5dd0f089a3
config: show HOMEBREW_REPOSITORY
...
Closes Homebrew/homebrew#43423 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-31 09:21:51 +02:00
Baptiste Fontaine
c7450cb510
wps2odt: migrate to boneyard
...
Closes Homebrew/homebrew#41279 .
Closes Homebrew/homebrew#43415 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-31 09:21:27 +02:00
Alex Dunn
431ebba7af
cmd/search: mark installed formulae
...
`brew search emacs`, with homebrew/emacs tapped:
```
real 0m2.586s
user 0m1.138s
sys 0m0.121s
```
Previously:
```
real 0m2.831s
user 0m1.385s
sys 0m0.087s
```
`brew search s`:
```
real 0m2.260s
user 0m1.201s
sys 0m0.114s
```
Previously:
```
real 0m5.953s
user 0m4.827s
sys 0m0.226s
```
Closes Homebrew/homebrew#35696 .
Closes Homebrew/homebrew#42662 .
2015-08-30 11:29:13 -07:00
Baptiste Fontaine
0f6d3b2923
tap_migrations: fix the sorting
2015-08-30 18:23:25 +02:00
Mike McQuaid
2c959a7d58
More API documentation.
...
And remove the documented stuff from the `example-formula.rb`.
Closes Homebrew/homebrew#43241 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-29 15:43:16 +01:00
Xu Cheng
77536e39de
sandbox: fix log problem for brew test-bot
2015-08-29 19:36:10 +08:00
Baptiste Fontaine
c9c56bc6e9
owamp: migrating to boneyard
...
Closes Homebrew/homebrew#43361 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-28 19:56:41 +02:00
Baptiste Fontaine
2881d28277
par2tbb: migrating to boneyard
...
Closes Homebrew/homebrew#43360 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-08-28 19:56:33 +02:00
William Woodruff
c459349b89
reformat nested heredocs in BuildFlagsError and BuildToolsError to match String#undent behavior
...
Closes Homebrew/homebrew#43303 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-28 18:02:05 +08:00
William Woodruff
b0d5e17906
tweak String#undent so that only leading whitespace up to the first indentation level is gsubbed, change test_undent to reflect change and add test_undent_nested to test new behavior
2015-08-28 18:02:04 +08:00
Xu Cheng
3b88c070c6
sandbox: better log output
...
* use syslog filter instead of grep.
* output sandbox log to stdout when verbose and failed.
* output nothing if sandbox log is empty.
Closes Homebrew/homebrew#43325 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-28 17:33:09 +08:00
Xu Cheng
ddb630b01c
move sudo -k to formula_installer
...
sudo -k cannot be used inside sandbox
Closes Homebrew/homebrew#43345 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-28 17:15:29 +08:00
Xu Cheng
a5aba7f7d8
tap: rmdir when tap failed or interrupted
...
Fixes Homebrew/homebrew#43280 .
Closes Homebrew/homebrew#43352 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-28 17:15:23 +08:00
Xu Cheng
3458b99d6e
update: secure formula loading in rename
...
For update, all formula loading need to be secured by `rescue`.
Otherwise it's easy to crash `brew update` for vasty reasons, e.g.
new Formula DSL.
Closes Homebrew/homebrew#43353 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-28 17:15:18 +08:00