diff options
| author | Misty De Meo | 2012-02-02 13:12:09 -0600 |
|---|---|---|
| committer | Misty De Meo | 2012-02-02 13:13:07 -0600 |
| commit | b6fa08f2d2238acec1735a5928dcb5b119ec17a7 (patch) | |
| tree | a36789b0c72528e35b150ead809700966f91129a /Library | |
| parent | 4ce8bdb32c027fbace6bf019f4846b44e899d5cf (diff) | |
| download | brew-b6fa08f2d2238acec1735a5928dcb5b119ec17a7.tar.bz2 | |
devel: reset mirrors when building devel
Otherwise stable mirrors will be considered when the devel download
fails.
Fixes Homebrew/homebrew#9910.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index bae651bd3..576be6889 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -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 |
