3049 Commits

Author SHA1 Message Date
Jack Nagel
62d25f9c8b Remove obsolete comment about download_strategy
The canonical way to select a custom download strategy is to pass

  :using => StrategyClass

as an argument to the url DSL method.
2013-04-05 14:41:14 -05:00
Jack Nagel
dda22a3562 Rename checksums.rb to match class name 2013-04-04 12:34:24 -05:00
Jack Nagel
ae9060fc54 Remove circular require 2013-04-04 10:53:01 -05:00
Jack Nagel
df29049222 Recognize 7z files by magic bytes, not filename 2013-04-03 23:30:32 -05:00
Jack Nagel
12932a51b3 Don't error out when a package is already installed
Fixes Homebrew/homebrew#17010.
2013-04-03 18:27:28 -05:00
Adam Vandenberg
b1bc967f23 use separate args in brew create 2013-04-03 11:24:45 -07:00
Misty De Meo
22f2f6aed3 tap/untap: use Array#length, not #count
Array#count was apparently introduced in 1.8.7.
2013-04-02 16:28:46 -05:00
Jack Nagel
d13a39d1ac Fix missing require in x11_dependency.rb
Fixes Homebrew/homebrew#18918.
2013-04-02 16:18:56 -05:00
Jack Nagel
4ebafbf62f Suppress warnings in test_pathname_install 2013-04-02 15:47:25 -05:00
Jack Nagel
3bceaf8f5e Add test for differing module and import name 2013-04-02 15:41:51 -05:00
Jack Nagel
5b5361b92e Fix requires in test_x11_dependency.rb 2013-04-02 15:33:35 -05:00
Jack Nagel
b82ae7067d Shrink requirements.rb 2013-04-02 15:33:35 -05:00
Jack Nagel
c3d48b5d8a Don't use "assert_not_nil" 2013-04-02 15:33:34 -05:00
Jack Nagel
207f24be07 Split out and fix LanguageModuleDependency tests 2013-04-02 15:33:34 -05:00
Jack Nagel
34f3f76932 Simplify setting this ivar 2013-04-02 15:33:34 -05:00
Jack Nagel
e4c43b4f8c Fix chicken scheme imports 2013-04-02 15:33:34 -05:00
Jack Nagel
9dd6d74b44 Add new tests for fails_with DSL 2013-04-02 13:19:04 -05:00
Jack Nagel
2f49fd07b1 Isolate compiler selector tests 2013-04-02 13:19:04 -05:00
Jack Nagel
c679e557ba CompilerSelector: don't use non-existent compilers 2013-04-02 13:19:04 -05:00
Jack Nagel
c61c1fb813 Bump useable clang version to 318
Build 211 can build most things, but I've seen intermittent
miscompilation and slower code. Also it comes from Xcode 4.2, so most
people don't have it anyway. Let's use 218 as the minimum viable
version.
2013-04-02 13:19:04 -05:00
Jack Nagel
ee7178562f Move x86_64 Requirement into core
Closes Homebrew/homebrew#18886.
2013-04-02 13:17:24 -05:00
Jack Nagel
9f1e6af879 Use satisfy syntax for CLTDependency 2013-04-02 13:17:23 -05:00
Jack Nagel
d2ae810b76 Test that X11 env is triggered correctly 2013-04-01 18:56:14 -05:00
Jack Nagel
115501d42f Fix X11 env setup 2013-04-01 18:50:56 -05:00
Jack Nagel
1b0f0824fe Requirement: env DSL is evaluated in context of self, not ENV
This was meant to support:

  env do |req|
    append_path 'PATH', req.some_method
    ...
  end

i.e., the block was evaluated in the context of ENV. But it turned out
to be not so useful after all, so I'm ripping it out before something
actually depends on it.
2013-04-01 16:17:35 -05:00
Mike McQuaid
462a418878 Add optional post_install method to Formula.
Sometimes we may want to run commands after bottle installation (such as
creating directories outside the Cellar) so this method allows us to do
so.

Closes Homebrew/homebrew#18382.
2013-04-01 22:12:43 +01:00
Mike McQuaid
1263b429df formula_installer: warn on bottles being skipped.
We want to notify users that non-/usr/local installs may result in some
bottles being not used.

References Homebrew/homebrew#18540
2013-04-01 22:12:43 +01:00
Jack Nagel
6a58650611 Make testing_env somewhat readable 2013-04-01 15:53:42 -05:00
Jack Nagel
cfe922ffd4 Silence stderr in test suite 2013-04-01 12:15:29 -05:00
Jack Nagel
ad5b128fc7 audit: fix check for depending on requirement classes
Don't complain if it's instantiating the class so that it can pass
arguments.

Fixes Homebrew/homebrew#18883.
2013-04-01 11:35:56 -05:00
Jack Nagel
2befa0fd5c Fix list --pinned for non-formula kegs
Fixes Homebrew/homebrew#18885.
2013-04-01 11:22:15 -05:00
Jack Nagel
8fbf3a43c3 Fix uninstallation of non-formula kegs
Grrr...
2013-03-31 21:28:20 -05:00
Jack Nagel
ba202df70b onoe and opoo print to stderr
This may result in some undesired output for things that suppress
stdout, but we'll fix those as we go.

Fixes Homebrew/homebrew#18650.
2013-03-31 15:20:12 -05:00
Jack Nagel
7af5a74c4e DRY ohai truncation 2013-03-31 15:18:38 -05:00
Simon Sigurdhsson
4cd95652ea brew-pin: Fix bug in FormulaPin#pinned?
Since `pinned?` was using `File#exists?`, broken symlinks left by force-upgraded
formulae made `pinned?` return false while `pin` returned with an error because
it could not overwrite the broken link. This is fixed by using `File#symlink?`
instead, which returns true for broken symlinks and false only when they do not
exist.

Closes Homebrew/homebrew#18858.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-31 19:27:17 +01:00
Simon Sigurdhsson
040138164b brew-info: Add pinned status to info.
Closes Homebrew/homebrew#18851.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-31 19:27:17 +01:00
Jack Nagel
ec7dc78ba4 Simplify destructuring this array 2013-03-30 15:16:44 -05:00
Simon Sigurdhsson
f8a88b5f28 brew-pin: prevent selected formulae from upgrade.
* Added `pin` et. al. to manpage.
* Added `brew pin` to `brew.1` * Added `brew unpin` to `brew.1`
* Added `brew list --pinned` to `brew.1`
* Added information about frozen formulae to `brew upgrade` in `brew.1`
* Added `pin` et.al. to completion scripts.
* Unpin formulae when uninstalling them
* Unpin and re-pin formulae when upgrading (avoids stale symlink)

References Homebrew/homebrew#18386.
Closes Homebrew/homebrew#18515.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-03-30 19:50:47 +00:00
Jack Nagel
4a52bf1c31 Use each_key instead of keys.each 2013-03-29 21:59:02 -05:00
Adam Vandenberg
3320b15609 doctor: restore newlines between checks
Closes Homebrew/homebrew#18060.
2013-03-29 11:14:46 -07:00
Jack Nagel
891cfe454b Remove circular require
Will this break anything? It shouldn't; Formula will always be loaded
before Tab anyway. But really there is a design problem here, Tab
shouldn't have any hardcoded references to Formula. I think this is
fixable, but callers of for_formula will need to be checked first.
2013-03-28 17:37:29 -05:00
Jack Nagel
0d45c3c0f2 Suppress uninitialized instance variable warnings 2013-03-28 17:37:29 -05:00
Jack Nagel
f0db242591 extend/fileutils: suppress discarded method definition warnings 2013-03-28 17:37:29 -05:00
Jack Nagel
d994c6cdda Suppress ambiguous argument and grouped expression warnings 2013-03-28 17:37:29 -05:00
Jack Nagel
593289a018 Make clear that this method discards arguments 2013-03-28 17:37:28 -05:00
Adam Vandenberg
dd112ef579 audit: don't complain about postgis using postgresql 2013-03-28 13:10:41 -07:00
Jack Nagel
ad58cd88ab info: make use of Tab#to_s
Closes Homebrew/homebrew#18788.
2013-03-28 14:21:52 -05:00
Jack Nagel
5e5e82f9ef Tab#to_s returns a one-line summary of the receipt 2013-03-28 14:16:15 -05:00
Adam Vandenberg
d9f64a1574 doctor: check for all DYLD env vars 2013-03-26 16:19:55 -07:00
Sebastian Staudt
5c17405982 LinuxCPUs: Fix method alias
Closes Homebrew/homebrew#18683.

Signed-off-by: Misty De Meo <mistydemeo@gmail.com>
2013-03-23 14:23:03 -05:00