diff options
| author | Jack Nagel | 2013-09-17 21:25:39 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-09-17 21:29:53 -0500 |
| commit | b40b46e3f6d1e1a6566efa8912be24930ce29175 (patch) | |
| tree | 7b587988c02444c5d6514d15f4e2c203050f4764 /Library | |
| parent | 360a099faa00a5d44d0f6796ffaf4a017e446a65 (diff) | |
| download | brew-b40b46e3f6d1e1a6566efa8912be24930ce29175.tar.bz2 | |
Make top-level resources apply to all specs
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index add84efbe..d0d233880 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -711,8 +711,7 @@ class Formula # Define a named resource using a SoftwareSpec style block def resource name, &block - @stable ||= create_spec(SoftwareSpec) - @stable.resource(name, &block) + specs.each { |spec| spec.resource(name, &block) } end def dependencies |
