4907 Commits

Author SHA1 Message Date
Mike McQuaid
8f35793020 Support 32-bit 10.6 bottles.
Closes Homebrew/homebrew#17735.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-01 17:49:09 +00:00
Mike McQuaid
20c0ddc401 Add non-/usr/local bottles support.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-01 17:49:09 +00:00
Mike McQuaid
360af367a8 Cleanup bottle DSL.
* Remove legacy url syntax.
* Use revision instead of version.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-01 17:49:09 +00:00
Misty De Meo
6b96102fad doctor: Update Mono pkg-config warning 2013-02-25 11:17:19 -06:00
Mike McQuaid
b1241bb3a1 brew create: use test DSL 2013-02-23 08:42:45 +00:00
Jack Nagel
20328d763e audit: don't complain about versioned automake depending on autoconf 2013-02-21 16:47:35 -06:00
Jack Nagel
22a3ecff28 Silence warning about unescaped square brackets 2013-02-18 12:13:36 -06:00
Jack Nagel
f037be5148 Don't shadow outer local variables 2013-02-18 12:13:36 -06:00
Jack Nagel
1a799f04e6 Remove unused variables 2013-02-18 12:13:35 -06:00
Jack Nagel
f172d3a6eb Don't use deprecated form of attr
The form "attr :name, true" is deprecated and causes Ruby to emit a
warning in verbose mode. Using attr_{reader,writer,accessor} is more
clear anyway, so do so.
2013-02-18 12:13:34 -06:00
Mike McQuaid
beff735d3f brew-create: don't insert autodetected versions. 2013-02-18 10:42:32 +00:00
Mike McQuaid
7766505348 brew-doctor: fix autocrlf warning (again).
Closes Homebrew/homebrew#17843.
2013-02-18 10:42:14 +00:00
Mike McQuaid
ddaf891add Add 'brew reinstall' command. 2013-02-18 10:41:53 +00:00
Mike McQuaid
4aacf5400e brew-update: show upgrade command on formula parameters.
Closes Homebrew/homebrew#17814.
2013-02-18 10:40:48 +00:00
Jack Nagel
f62818210d info: open history pages for all specified formulae
Closes Homebrew/homebrew#17852.
2013-02-16 21:20:17 -06:00
Adam Vandenberg
37b28741f2 doctor: make brew link more clear
Closes Homebrew/homebrew#17805.
2013-02-12 22:30:49 -08:00
Adam Vandenberg
b85bf58007 search homebrew-x11 2013-02-10 11:15:20 -08:00
Jack Nagel
603bcb6cc8 audit: allow alpha.gnu.org URLs 2013-02-07 15:34:13 -06:00
Jack Nagel
3c7837e5a9 audit: check for missing xz build-time dep
Closes Homebrew/homebrew#17565.
2013-02-03 14:57:33 -06:00
Jack Nagel
66d91ac0e4 audit: mark intltool as a build-time dep 2013-02-03 14:48:02 -06:00
Adam Vandenberg
bae3d70834 update: abort if formula names are given
Closes Homebrew/homebrew#11154.
2013-02-03 11:53:17 -08:00
Simon Sigurdhsson
af3bfab9db Make CurlDownloadStrategy resume aborted downloads
* `CurlDownloadStrategy#_fetch` (and the same methods in its
  subclasses) now fetches the file to a temporary path, and
  `CurlDownloadStrategy#fetch` moves it to the correct location.
* `Homebrew#cleanup` cleans the temporary files `CurlDownloadStrategy`
  creates if they're left in the cache.

Closes Homebrew/homebrew#13953.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-02-02 14:05:40 -08:00
Jack Nagel
3957a35c33 audit: inspect dep name, not dep object 2013-02-02 01:00:46 -06:00
Jack Nagel
67d798e905 Refactor fetch
Remove direct references to checksum types, access them through the
Checksum::TYPES constant instead.
2013-02-01 22:17:46 -06:00
Elliot Saba
7da376a50c Update tap --repair function to ignore non-directory files in Library/Taps/
Closes Homebrew/homebrew#17518.
Closes Homebrew/homebrew#17511.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-02-01 18:36:38 -08:00
Jack Nagel
64eba71cb2 audit: wrap patches in ENV.with_build_environment block 2013-02-01 14:27:34 -06:00
Samuel John
e851e88863 brew doctor: Check for CaSe SeNsItIvE fs
Closes Homebrew/homebrew#16658.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-01-31 21:48:28 -08:00
Mike McQuaid
9ba9e749b8 Remove MD5 support.
Closes Homebrew/homebrew#17317.
2013-01-30 22:36:12 -08:00
Mike McQuaid
36497f2a5d brew-search: search homebrew/apache tap. 2013-01-30 22:15:37 -08:00
Mike McQuaid
27700390b4 Improve brew doctor autocrlf message.
Better version of ed357d.

References Homebrew/homebrew#15711.
References Homebrew/homebrew#17361.
References Homebrew/homebrew#17437.
2013-01-30 21:29:19 -08:00
Charlie Sharpsteen
1fbc32d842 brew-help: Add options to example usage
Also, move the line containing `info`, `home` and `options` to the top of the
list as users should be running these before installation.

Ref. Homebrew/homebrew#13224.
2013-01-30 09:31:42 -08:00
Jack Nagel
b6631ac23f doctor: core.autocrlf can be empty
c.f. Homebrew/homebrew#17361.
2013-01-30 01:26:28 -06:00
Adam Vandenberg
0dec35e7b0 Only check keg-only if we map to a formula 2013-01-29 20:45:33 -08:00
Adam Vandenberg
40c339e349 Require --force to link keg-only.
Closes Homebrew/homebrew#13349.
2013-01-29 20:31:33 -08:00
Mike McQuaid
92a5c765a9 Improve brew doctor autocrlf check.
Closes Homebrew/homebrew#15711.
2013-01-29 17:14:00 -08:00
Misty De Meo
14bb39b898 Don't print git origin check without git repo 2013-01-29 09:48:43 -06:00
Jack Nagel
1ca5b7a204 doctor: fix typo 2013-01-28 23:02:25 -06:00
Adam Vandenberg
68d312c46f audit: hint about depends_on Class 2013-01-27 14:54:48 -08:00
Sema
667b53ffb0 doctor: fix transposed git command
Closes Homebrew/homebrew#17338.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-01-27 13:17:19 -06:00
Jack Nagel
2534c1d45e audit: warn about nonexistent options passed to deps 2013-01-26 12:14:51 -06:00
Jack Nagel
5ac4e4f071 upgrade: use standard Tab accessor
Yes, the formula object does refer to a version that has not yet been
installed, but we were not looking into Formula#prefix, but #linked_keg,
which is version agnostic (since the original patch was committed, we
Tab#for_formula learned to look into #opt_prefix as well). The rest of
the logic is already embedded in the Tab accessors.
2013-01-26 12:14:51 -06:00
Jack Nagel
109145bf21 Replace usages of recursive_deps with recursive_dependencies 2013-01-26 12:14:49 -06:00
Jack Nagel
82051a56ec upgrade: offload dependency expansion to FormulaInstaller
Now that FormulaInstaller does dependency expansion the _right_ way,
avoid duplicating the logic in upgrade. Instead, offload it to the
installer, which will generate an exception in check_install_sanity that
we can safely ignore when formulae in the outdated list are upgraded as
part of the dependency tree of another outdated formula.
2013-01-26 12:14:49 -06:00
Jack Nagel
18836d93d8 uses: utilize modern dependency API 2013-01-26 12:14:49 -06:00
Jack Nagel
fe802f05ef missing: ignore unused optional and recommended deps 2013-01-26 12:14:48 -06:00
Jack Nagel
951872c4be FormulaInstaller: don't install bottle if options were passed 2013-01-26 12:14:46 -06:00
Jack Nagel
5822aa80cf FormulaInstaller: make tab an attr, but never a parameter 2013-01-26 12:14:46 -06:00
Jack Nagel
37a56fa513 FormulaInstaller: implement installation locks
FormulaInstaller now attempts to take a lock on a "foo.brewing" file for
the formula and all of its dependencies before attempting installation.

The lock is an advisory lock implemented using flock(), and as such it
only locks out other processes that attempt to take the lock. It also
means that it is never necessary to manually remove the lock file,
because the lock is not enforced by I/O.

The uninstall, link, and unlink commands all learn to respect this lock
as well, so that the installation cannot be corrupted by a concurrent
Homebrew process, and keg operations cannot occur simultaneously.
2013-01-26 12:14:45 -06:00
Mike McQuaid
ff4baa3fcc brew-cleanup: don't whine about permission denied.
Closes Homebrew/homebrew#14359.
2013-01-26 14:11:06 +00:00
Mike McQuaid
239217e944 brew-fetch: remove MD5 output. 2013-01-26 12:48:00 +00:00