aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2013-09-27 09:22:15 +0100
committerMike McQuaid2013-09-27 09:22:15 +0100
commite4b6fc5ae0b8eab8022084f8b4e02cfb825048a8 (patch)
tree04ff2c6c232f428aaa0d9405d723faf20ffeb745
parentf17289f708cefce443f47dd00b5d184fd0c2aaac (diff)
downloadbrew-e4b6fc5ae0b8eab8022084f8b4e02cfb825048a8.tar.bz2
Bottle: set version from stable spec.
-rw-r--r--Library/Homebrew/formula.rb1
-rw-r--r--Library/Homebrew/software_spec.rb2
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