aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2012-02-02 13:12:09 -0600
committerMisty De Meo2012-02-02 13:13:07 -0600
commit448fbc9afa407de85f14c71ea53ad8f6c66134ab (patch)
treeff483eb7052d8c028499ad6a7609f7062038bba3 /Library
parent673d4b1346d3fb3e8b6d2ff6a5e3ea4da4a27607 (diff)
downloadhomebrew-448fbc9afa407de85f14c71ea53ad8f6c66134ab.tar.bz2
devel: reset mirrors when building devel
Otherwise stable mirrors will be considered when the devel download fails. Fixes #9910.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb8
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