diff options
| author | Jack Nagel | 2013-09-12 19:43:22 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-09-12 19:43:22 -0500 |
| commit | 448ce269804afa6a8914323e07edcd0ce1d9d1c4 (patch) | |
| tree | ab199ec1fbc68171e0e02f9e804de669307b6de4 /Library | |
| parent | 809fc87da02749435da3ffd843691b38f2169811 (diff) | |
| download | brew-448ce269804afa6a8914323e07edcd0ce1d9d1c4.tar.bz2 | |
Use SoftwareSpec directly when using a stable block
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 3 |
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 |
