Jack Nagel
26a076eef5
upgrade: tighten installed precondition
2013-05-18 22:09:15 -05:00
Jack Nagel
3687cbc21b
Remove gsutil
...
This is now available from PyPI, and the github tarball does not contain
all of the necessary dependencies, so remove it and recommend "pip
install gsutil".
Closes Homebrew/homebrew#19874 .
Closes Homebrew/homebrew#19895 .
2013-05-18 20:27:15 -05:00
Jack Nagel
277f3d3c30
Stop running "prune" as part of "cleanup"
...
Rationale: "prune" is slow, does not need to be run as often as
"cleanup", and is potentially destructive to things like empty
directories that Homebrew did not create. Thus we should let users run
`brew prune` only when they wish to, while still being able to use `brew
cleanup`.
Closes Homebrew/homebrew#19863 .
2013-05-18 20:22:24 -05:00
Jack Nagel
a3312d24a3
Use subdirs to avoid checking for .DS_Store
2013-05-16 17:48:12 -05:00
Jack Nagel
460e805592
Formula: remove specs accessor
...
This information is only used by the downloader, no need to expose it.
2013-05-16 15:33:31 -05:00
Jack Nagel
65775e4318
CurlDownloadStrategy: remove "tarball_path" accessor
...
This information is already exposed as "cached_location", which is
common to all download strategies.
2013-05-16 15:26:25 -05:00
Jack Nagel
e8997c8a5a
linkapps: deal only with kegs, not formulae
...
Fixes Homebrew/homebrew#19873 .
2013-05-16 14:57:29 -05:00
Jack Nagel
2d8496129c
Formula#fetch: always return the cached path
...
This allows us to remove some type checks that were protecting against
potential nils.
2013-05-16 14:06:26 -05:00
Jack Nagel
daef74aa27
Adjust semantics of Formula#fetch
...
It doesn't really make logical sense that this method returns both the
fetched path (or sometimes nil!) and the downloader, so just return the
path (again, or nil!) and callers that want the downloader can ask for
it separately.
2013-05-16 14:06:26 -05:00
Jack Nagel
a6f9a1c4a3
fetch: rename 'tarball' to 'download'
2013-05-16 14:06:26 -05:00
Jack Nagel
db0c93dbae
fetch: use concat rather than << and flatten
2013-05-16 14:06:25 -05:00
Jack Nagel
903d640d38
Simplify uninstall --force
2013-05-15 22:27:30 -05:00
Jack Nagel
12b63fdd5c
uninstall: stop assuming kegs always map to formulae
2013-05-15 22:19:58 -05:00
Jack Nagel
d3a8cb7803
cleanup: enable prune during dry-run mode
...
Closes Homebrew/homebrew#19826 .
2013-05-15 12:57:02 -05:00
Jack Nagel
1197409c36
prune: add dry-run mode
2013-05-15 12:57:01 -05:00
Jack Nagel
f4dcdea64e
cleanup: cleanup_all => cleanup_cellar
2013-05-15 12:57:01 -05:00
Jack Nagel
a9fcefda4e
cleanup: refactor cleanup_cache
2013-05-15 12:57:01 -05:00
Jack Nagel
5b5bb57865
cleanup: rename variable
2013-05-15 12:57:00 -05:00
Jack Nagel
b26c502f79
cleanup: refactor cleanup_formula
2013-05-15 12:57:00 -05:00
Jack Nagel
87a8f9a6ae
cleanup: only map dirs to kegs once
2013-05-15 12:57:00 -05:00
Jack Nagel
daf8c26108
cleanup: use Pathname#rmtree instead of FileUtils
2013-05-15 12:56:59 -05:00
Jack Nagel
b32310c3db
cleanup: use subdirs, avoid .directory? checks
2013-05-15 12:56:59 -05:00
Jack Nagel
bf8bf2e1d1
cleanup: remove redundant condition
...
If f.installed? is true, f.rack.directory? will always be true as well.
2013-05-15 12:56:59 -05:00
Jack Nagel
0c35274bf4
cleanup: rename method for consistency
2013-05-15 12:56:58 -05:00
Jack Nagel
5515d359d5
cleanup: use early return rather than method-spanning conditional
2013-05-15 12:56:58 -05:00
Jack Nagel
8cd331718e
cleanup: factor out unqualified cleanup code
2013-05-15 12:56:58 -05:00
Jack Nagel
c48ac0b982
Methods that end in _formula should only accept a formula
2013-05-15 12:56:57 -05:00
Jaime Marquínez Ferrándiz
0244040825
brew_bash_completion: complete --force for brew link
...
Closes Homebrew/homebrew#19828 .
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-05-15 06:38:09 -07:00
Jack Nagel
132e6a3a8e
audit: fix version audit for Version subclasses
...
The version isn't redundant if a subclass of Version is specified.
2013-05-14 20:17:00 -05:00
Jack Nagel
8b763acc2a
outdated: always do comparisons with a Formula as the receiver
...
It is possible for the object returned by Formula#version to be a
subclass of Version with special behavior, so we want to use that for
the comparison.
2013-05-14 20:11:48 -05:00
Jack Nagel
e0c4fd5b72
test_keg: reduce noise by including FileUtils
2013-05-14 16:29:36 -05:00
Jack Nagel
cf2b0f88e6
test_keg: make mode an ivar
2013-05-14 16:29:36 -05:00
Adam Vandenberg
13c604035b
Retry downloads if a server doesn't support byte ranges
...
If an incomplete download exists, and the HTTP server doesn't support
byte ranges, delete the incomplete download and retry once.
Tested with freeling, whose server does not support byte ranges.
Closes Homebrew/homebrew#19757 .
2013-05-13 07:32:03 -07:00
Jack Nagel
46f8be1d9e
Use Hash#each_value rather than discarding key
2013-05-11 16:06:18 -05:00
Mike McQuaid
ad5c1b81cd
Fix --build-bottle CFLAGS.
...
The CFLAGS were previously not generic enough.
References Homebrew/homebrew#18944 .
References Homebrew/homebrew#19179 .
2013-05-11 12:18:25 +01:00
Jack Nagel
1bf8fbfe9a
info: simplify keg listing
2013-05-10 23:45:36 -05:00
Jack Nagel
2517969585
deps: fix --1 output
...
Fixes Homebrew/homebrew#17550 .
Closes Homebrew/homebrew#19668 .
2013-05-10 23:45:30 -05:00
Jack Nagel
e02d6f2500
info: improve dependency listing
2013-05-10 23:45:06 -05:00
Jack Nagel
2d93935e6a
Add type accessors to Dependencies
2013-05-10 23:45:06 -05:00
Jack Nagel
7629d4485e
Use Enumerable#grep
2013-05-10 23:45:06 -05:00
Jack Nagel
12f4ccd7f3
Refactor Dependency.expand
2013-05-10 23:45:05 -05:00
Jack Nagel
3be67f7252
Reorganize compat
2013-05-10 23:27:28 -05:00
Jack Nagel
290a93ea75
Remove ancient global methods from compat
2013-05-10 23:27:27 -05:00
Mike McQuaid
92ccfc548e
Allow requirements to specify a default formula.
...
This allows default resolution of requirements without user intervention.
Closes Homebrew/homebrew#19627 .
2013-05-10 13:37:41 +01:00
Desmond Brand
ba93e6d363
Overwrite broken symlinks with --overwrite
...
Closes Homebrew/homebrew#19480 .
Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-05-09 09:21:34 -05:00
Misty De Meo
4312f94013
Add gcc-4.0 to fails_with
2013-05-08 09:38:15 -05:00
Jack Nagel
f61a4f8893
doctor: update ruby version check
2013-05-07 19:45:10 -05:00
Jack Nagel
14bc883750
doctor: update git version check
2013-05-07 19:45:10 -05:00
Jack Nagel
66489b70d7
audit: only generate aliases list once
2013-05-07 18:40:14 -05:00
Jack Nagel
fedf9ddae3
audit: only set up the build environment once
2013-05-07 18:39:45 -05:00