aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb3
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