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:
parent
4ce8bdb32c
commit
b6fa08f2d2
@ -769,7 +769,13 @@ EOF
|
||||
|
||||
def devel &block
|
||||
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
|
||||
|
||||
def bottle url=nil, &block
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user