diff options
Diffstat (limited to 'Library/Homebrew')
| -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 |
