aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-09-12 19:43:22 -0500
committerJack Nagel2013-09-12 19:43:22 -0500
commit448ce269804afa6a8914323e07edcd0ce1d9d1c4 (patch)
treeab199ec1fbc68171e0e02f9e804de669307b6de4 /Library
parent809fc87da02749435da3ffd843691b38f2169811 (diff)
downloadbrew-448ce269804afa6a8914323e07edcd0ce1d9d1c4.tar.bz2
Use SoftwareSpec directly when using a stable block
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 0ccf9292c..484ee429b 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -679,7 +679,8 @@ class Formula
def stable &block
return @stable unless block_given?
- instance_eval(&block)
+ @stable ||= SoftwareSpec.new
+ @stable.instance_eval(&block)
end
def bottle *, &block