Xu Cheng
b5ec74c3f6
search: various improvement
...
* Move listing all formula names in the top to speed up shell script.
* Simplify logic.
* Only search PR and check bad regex for tty?, which will benefit to
shell script.
Closes Homebrew/homebrew#44985 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-15 17:24:41 +08:00
Xu Cheng
135efb39b8
search: highlight installed formulae
2015-10-15 17:24:41 +08:00
Xu Cheng
79018e4e24
test-bot: remove unused --tap args for brew bottle
2015-10-15 16:25:17 +08:00
Xu Cheng
d162aab9c6
test-bot: ensure cleanup is running
...
Closes Homebrew/homebrew#44982 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-15 09:05:51 +01:00
Xu Cheng
c247a5b462
test-bot: merge formula's bottle before test
...
Fixes the bug described in
https://github.com/Homebrew/homebrew-science/pull/2866#issuecomment-148298146
2015-10-15 09:05:51 +01:00
Xu Cheng
1da0583634
bottle: allow --merge --write without commit
2015-10-15 09:05:51 +01:00
Martin Afanasjew
0114a26483
update: highlight installed formulae in report
...
Closes Homebrew/homebrew#44335 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-15 08:55:47 +01:00
Mike McQuaid
aeea953270
test-bot: readd missing --build-bottle.
2015-10-14 18:52:31 +01:00
Baptiste Fontaine
362da26ff6
test-bot: ensure install_passed is always defined
2015-10-14 17:40:14 +02:00
Baptiste Fontaine
f3035333fb
FormulaValidationError: include full_name
...
Closes Homebrew/homebrew#44946 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-14 16:21:42 +02:00
Martin Afanasjew
4cf703d5d8
utils: highlight items in column-wise output
...
Closes Homebrew/homebrew#44343 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-14 15:07:57 +01:00
Martin Afanasjew
c3e7a64648
utils: re-implement and improve column-wise output
2015-10-14 15:07:57 +01:00
Vlad Shablinsky
e04a463f11
update: allow updating from local branch
...
Closes Homebrew/homebrew#44893 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-14 14:01:27 +01:00
Mike McQuaid
667fa65be8
test-bot: make master builds faster.
...
Just do a few things rather than doing e.g. a full compile.
Closes Homebrew/homebrew#44936 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-14 14:01:11 +01:00
Xu Cheng
3d585d6e3f
add Formula#aliases
...
Fixes Homebrew/homebrew#44331 .
Closes Homebrew/homebrew#44709 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-14 17:26:41 +08:00
Xu Cheng
98633e03c6
add alias_table and alias_reverse_table for core and tap
2015-10-14 17:26:41 +08:00
Xu Cheng
65488903f9
add Formula.core_alias_files
2015-10-14 17:26:41 +08:00
Xu Cheng
d1222971f6
test-bot: update diff_start_sha1 unconditionally
...
See bfab4b0e65db4667ab09159b1040701fa75ec687
Closes Homebrew/homebrew#44889 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-14 00:04:57 +08:00
Alex Wang
d877fc0b3e
superenv: only strip sysroot flags for OS X SDKs.
...
Removing all sysroot flags is ok until a non-OS X SDK is needed. In
that case, builds can fail due to the non-OS X SDK being overwritten or
overridden by the OS X SDK.
Sysroot flags are now only stripped if they are an OS X SDK. This is
reliant on only OS X SDKs containing the string "macosx", so this will
break if if the wrong SDK shows up. However, the chances of that
happening seem low, as Apple probably doesn't want to introduce
something OS X that doesn't work with OS X, so it should be robust for
the near future.
This could break in an environment without the command line tools. The
fix for that is a bit more involved, though, so that will have to go
later.
Closes Homebrew/homebrew#44312 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-13 13:09:05 +01:00
Søren Brokær
ed42b2eb39
let the user know what exactly was already tapped
...
Closes Homebrew/homebrew#44843 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-10-13 14:03:42 +02:00
Xu Cheng
76a5ba6ae5
test: allow writing to certain var directories
...
Closes Homebrew/homebrew#44458 .
Closes Homebrew/homebrew#44773 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-10 11:54:10 +08:00
Xu Cheng
52de8d9373
postinstall: sanitize ARGV options
2015-10-10 11:19:22 +08:00
Xu Cheng
8c4bd3dae2
audit: use ARGV.resolved_formula
...
There are audit rules which check cellar. Therefore, we need
`ARGV.resolved_formula` to get proper spec and prefix.
Closes Homebrew/homebrew#44781 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-10 01:34:43 +08:00
Xu Cheng
fe3b69d388
test: sanitize ARGV options
...
Otherwise, it will use the wrong prefix to test devel/HEAD install.
2015-10-10 01:34:42 +08:00
Xu Cheng
60ba8beefa
Formulary.from_rack: better formula resolution strategy
...
The flow is as follow:
* If tap is nil(DIY install), search using name.
* If tap is found, search using full name.
* If tap is found and full name searching failed, search using name.
This usually means the formula may be migrated to different tap.
Closes Homebrew/homebrew#44771 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-10 01:34:36 +08:00
Xu Cheng
5b321ffb5a
caveats: show information based on build options
...
Fixes Homebrew/homebrew#44729 .
Fixes Homebrew/homebrew#40863 .
Closes Homebrew/homebrew#44779 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-10 01:33:58 +08:00
Xu Cheng
51a585e0b4
search: don't fail because broken formulae
...
Fixes Homebrew/homebrew#44687 .
Closes Homebrew/homebrew#44770 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-10 01:33:44 +08:00
Xu Cheng
1ae44d4429
use directory? to check rack existence
2015-10-09 19:06:08 +08:00
M Jordan Stanway
a7df9c53eb
keg: add java to SHARE_PATHS
...
Add `java` to `SHARE_PATHS` so that `HOMEBREW_PREFIX/share/java` is a folder with symlinks in it, rather than a symlink to a folder for a specific formula.
This way we avoid conflicts if multiple formulas put `jar` files in the
standard location `HOMEBREW_PREFIX/share/java`.
See also:
[pull request 44420](https://github.com/Homebrew/homebrew/pull/44420 )
Closes Homebrew/homebrew#44456 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-08 16:23:40 +08:00
Xu Cheng
235c5b6bfa
ObserverPathnameExtension: only puts first 100 operations
...
Fixes https://github.com/Homebrew/homebrew/issues/44320#issuecomment-143951973
Closes Homebrew/homebrew#44440 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-08 16:12:01 +08:00
Xu Cheng
ee332c4550
handle TapFormulaWithOldnameAmbiguityError
...
Closes Homebrew/homebrew#44705 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-10-08 16:02:33 +08:00
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
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
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
Xu Cheng
6b3704162f
doctor: point Xcode download to App Store for El Capitan
2015-10-01 14:39:25 +08: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