diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 44e1c315b4..09ddf45fff 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 6143f23ede..36b085a46a 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