diff options
| author | Mike McQuaid | 2013-09-27 09:22:15 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-09-27 09:22:15 +0100 |
| commit | e4b6fc5ae0b8eab8022084f8b4e02cfb825048a8 (patch) | |
| tree | 04ff2c6c232f428aaa0d9405d723faf20ffeb745 /Library | |
| parent | f17289f708cefce443f47dd00b5d184fd0c2aaac (diff) | |
| download | brew-e4b6fc5ae0b8eab8022084f8b4e02cfb825048a8.tar.bz2 | |
Bottle: set version from stable spec.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/software_spec.rb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 44e1c315b..09ddf45ff 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -698,6 +698,7 @@ class Formula return @bottle unless block_given? @bottle ||= create_spec(Bottle) @bottle.instance_eval(&block) + @bottle.version = @stable.version end def devel &block diff --git a/Library/Homebrew/software_spec.rb b/Library/Homebrew/software_spec.rb index 6143f23ed..36b085a46 100644 --- a/Library/Homebrew/software_spec.rb +++ b/Library/Homebrew/software_spec.rb @@ -79,7 +79,7 @@ end class Bottle < SoftwareSpec attr_rw :root_url, :prefix, :cellar, :revision - def_delegators :@resource, :url= + def_delegators :@resource, :version=, :url= def initialize super |
