From b40b46e3f6d1e1a6566efa8912be24930ce29175 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 17 Sep 2013 21:25:39 -0500 Subject: [PATCH] Make top-level resources apply to all specs --- Library/Homebrew/formula.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index add84efbe7..d0d2338804 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