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
commit2c7f212ce33c202a20d3a0812c8d6f6795559aeb (patch)
tree791a9451a8c55de297beb7bd5168286a6c081427 /Library
parent9e6b75ff30ffcd955a5ddcb13789860ba28e7e75 (diff)
downloadhomebrew-2c7f212ce33c202a20d3a0812c8d6f6795559aeb.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