Bottle: set version from stable spec.
This commit is contained in:
parent
f17289f708
commit
e4b6fc5ae0
@ -698,6 +698,7 @@ class Formula
|
|||||||
return @bottle unless block_given?
|
return @bottle unless block_given?
|
||||||
@bottle ||= create_spec(Bottle)
|
@bottle ||= create_spec(Bottle)
|
||||||
@bottle.instance_eval(&block)
|
@bottle.instance_eval(&block)
|
||||||
|
@bottle.version = @stable.version
|
||||||
end
|
end
|
||||||
|
|
||||||
def devel &block
|
def devel &block
|
||||||
|
@ -79,7 +79,7 @@ end
|
|||||||
class Bottle < SoftwareSpec
|
class Bottle < SoftwareSpec
|
||||||
attr_rw :root_url, :prefix, :cellar, :revision
|
attr_rw :root_url, :prefix, :cellar, :revision
|
||||||
|
|
||||||
def_delegators :@resource, :url=
|
def_delegators :@resource, :version=, :url=
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
super
|
super
|
||||||
|
Loading…
x
Reference in New Issue
Block a user