devel: reset mirrors when building devel

Otherwise stable mirrors will be considered when the devel download
fails.

Fixes Homebrew/homebrew#9910.
This commit is contained in:
Misty De Meo 2012-02-02 13:12:09 -06:00
parent 4ce8bdb32c
commit b6fa08f2d2

View File

@ -769,7 +769,13 @@ EOF
def devel &block def devel &block
raise "url and md5 must be specified in a block" unless block_given? raise "url and md5 must be specified in a block" unless block_given?
instance_eval &block if ARGV.build_devel?
if ARGV.build_devel?
# clear out mirrors from the stable release
@mirrors = nil
instance_eval &block
end
end end
def bottle url=nil, &block def bottle url=nil, &block