5148 Commits

Author SHA1 Message Date
Jack Nagel
85ee742737 Update --cache command for generalized bottle implementation 2014-03-10 14:56:03 -05:00
Jack Nagel
0129542ede Update bottle command for generalized bottle implementation 2014-03-10 14:56:02 -05:00
Jack Nagel
a8fe989733 Update fetch command for generalized bottle implementation 2014-03-10 14:56:02 -05:00
Jack Nagel
7f875419c6 Update info command for generalized bottle implementation 2014-03-10 14:56:02 -05:00
Jack Nagel
a96c1a2afc Make force_bottle an explicit installer mode 2014-03-10 14:56:02 -05:00
Jack Nagel
7b6fa8b7bb Inline install_bottle? logic into the installer 2014-03-10 14:56:02 -05:00
Jack Nagel
32ab18c189 Wrap cellar compatibility check in a method 2014-03-10 14:56:02 -05:00
Jack Nagel
4b80d30bab Remove used options check from install_bottle?
This is now handled by requiring that options are always passed to the
installer explicitly.
2014-03-10 14:56:02 -05:00
Jack Nagel
2182ce4d16 Remove some obsoleted hacks from the installer 2014-03-10 14:56:02 -05:00
Jack Nagel
9bc8d0820e Reduce the number of things that trigger ARGV.build_from_source?
The newly generalized bottle implementation removes the need to
defensively check for --devel, --HEAD, and others in this method.
2014-03-10 14:56:02 -05:00
Jack Nagel
7da459874f Make bottle implementation more generic 2014-03-10 14:56:02 -05:00
Jack Nagel
97dd5f61c4 install: explicitly pass used options to the installer 2014-03-10 14:56:02 -05:00
Jack Nagel
a911dd5066 Make build_from_source an explicit installer mode 2014-03-10 14:56:02 -05:00
Jack Nagel
42e60f7c59 Make build_bottle an explicit installer mode 2014-03-10 14:56:01 -05:00
Adam Vandenberg
15ad296cfd Move mlton, mlkit, urweb to the boneyard.
mlton is a binary-only formula that only works when installed
to /usr/local. Moving it, and things that depend on it to the
boneyard.

Closes Homebrew/homebrew#21780.
2014-03-09 19:22:29 -07:00
Jack Nagel
9970c97c28 Clear dependency cache after each test 2014-03-09 12:38:19 -05:00
Mike McQuaid
b14ff8d163 dependency_collector: pass second tag as import.
Closes Homebrew/homebrew#27346.
2014-03-09 17:25:26 +00:00
Mike McQuaid
686f829f2f language_module_dependency: handle nil import_name 2014-03-09 17:24:50 +00:00
Jack Nagel
f01c8a0218 Pass build_from_source value to dependency installer 2014-03-08 23:42:14 -06:00
Jack Nagel
3a4bd12d48 Add stubs for build_from_source and build_bottle installer modes 2014-03-08 22:28:50 -06:00
Jack Nagel
ce93c75f11 Remove "--fresh" option from installer
Turns out that this doesn't really work at all. `brew install` _never_
reuses options in the first place, and using this option with `brew
upgrade` results in some nasty corner cases in passing options to
dependencies.
2014-03-08 19:08:47 -06:00
Jack Nagel
cf41bb1ebb Don't remove --only-dependencies since it is meaningless
When only_deps is true, this method is never called.
2014-03-08 19:08:47 -06:00
Jack Nagel
a465950874 Sanitize ARGV options that are reflected in the installer mode 2014-03-08 18:50:00 -06:00
Misty De Meo
53a2558473 Symbol#to_proc: fix with arrays of arrays
Previously, with nested arrays, the Symbol#to_proc would iterate over
the first item in the nested array instead of the array itself, e.g.:

[[1,2], [3,4]].map(&:first) #=>
	NoMethodError: undefined method `first' for 1:Fixnum
2014-03-08 10:37:58 -08:00
Mike McQuaid
9850e84f3b fetch: fix --retry with resources. 2014-03-08 17:21:37 +00:00
Ian Lancaster
9c345bfc03 audit: Raise problem with non-https Google Code download urls 2014-03-08 09:10:54 -08:00
Adam Vandenberg
85c93ad22c remove brew info --all
Closes Homebrew/homebrew#27322.
2014-03-08 07:43:36 -08:00
Mike McQuaid
3c4da82ee9 pull: add --bump option. 2014-03-08 01:19:20 +00:00
Mike McQuaid
52658e793a pull: warn if not pulling bottles. 2014-03-08 01:12:02 +00:00
Mike McQuaid
aa15b265e5 pull: general cleanup/fixes. 2014-03-08 01:12:02 +00:00
Mike McQuaid
a5bed1ea31 audit: check for good with/without usage.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-03-08 00:54:35 +00:00
Mike McQuaid
1070acfe7a audit: don't use GitHub zip files.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-03-08 00:54:35 +00:00
Mike McQuaid
1fd8e7fd75 audit: better handle formulae whitelisting.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-03-08 00:54:35 +00:00
Jaime Marquínez Ferrándiz
342ed1d163 uses: fix --installed with outdated versions
With that option iterate only over `Formula.installed`, otherwise
iterate over `Formula`. This is faster than iterating over all the
formulae and checking if it's installed.

Fixes Homebrew/homebrew#27259.
Closes Homebrew/homebrew#27295.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-03-07 18:47:34 -06:00
Mike McQuaid
f155b0570e Revert "ENV: request no byte code Python when bottling."
This reverts commit b603c96276cf7fe1417d2355eebc47fb15da0b8c.
2014-03-08 00:04:30 +00:00
Jack Nagel
568c878b0a Print loader class name in debug mode 2014-03-07 17:33:02 -06:00
Jack Nagel
d476a84f4f FormulaLoader: pull shared behavior into superclass 2014-03-07 17:30:39 -06:00
Adam Vandenberg
452d671008 add opt shortcuts to formula 2014-03-07 07:08:52 -08:00
Adam Vandenberg
5cb3b25d43 document formula path helpers 2014-03-07 07:08:52 -08:00
Mike McQuaid
cb047a223b fetch: fix overloading Homebrew.failed. 2014-03-06 21:17:52 +00:00
Jack Nagel
037acb81c8 Fix cleanup for head-only formulae
Fixes Homebrew/homebrew#27265.
2014-03-06 09:50:44 -06:00
Adam Vandenberg
5c51c85564 Finesse doctor message for /Library Python 2014-03-05 21:29:36 -08:00
Adam Vandenberg
6c378a69a2 update migrations for style 2014-03-05 20:40:25 -08:00
Adam Vandenberg
7d66e0caa9 Redact kerl
Kerl does not provide git tags, so move to headonly.

Closes Homebrew/homebrew#26307.
2014-03-05 20:39:52 -08:00
Jack Nagel
bacf5d7137 Don't use pkg_version when cleaning the cache
Fixes Homebrew/homebrew#27245.
2014-03-05 21:45:07 -06:00
Jack Nagel
d6937c9d3f Oops 2014-03-05 21:11:45 -06:00
Jack Nagel
8bfcdf0bd8 Remove special X11 proxy deps 2014-03-05 20:45:44 -06:00
Jack Nagel
44dc21ca5d Prepare bottle tooling for formula revisions 2014-03-05 20:45:44 -06:00
Jack Nagel
17032a600c Teach commands to work with revisions 2014-03-05 20:12:51 -06:00
Jack Nagel
6008187d5f Encode formula revision in installation prefix
In order to allow kegs built with the same version but differing formula
revisions to coexist, we must encode the revision as part of the keg's
name. This is necessary to actually perform an upgrade, as we cannot
upgrade a keg in-place, and temporarily moving it pending the result of
the upgrade is error-prone and potentially slow.

To accomplish this, we introduce a new Formula#pkg_version method that
concatenates the active_spec version with the formula revision. An
exception is made for a formula that has no revision: the tag is
omitted. This preserves compatibility with existing installations.
2014-03-05 20:12:51 -06:00