Merge pull request #4336 from ilovezfs/bump-formula-pr-fix-mirror

bump-formula-pr: don't unset --mirror= value
This commit is contained in:
ilovezfs 2018-06-13 00:37:14 -07:00 committed by GitHub
commit 42f5c2e4da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,7 +149,7 @@ module Homebrew
elsif !new_url
odie "#{formula}: no --url= argument specified!"
else
new_mirror = case new_url
new_mirror ||= case new_url
when requested_spec != :devel && %r{.*ftp.gnu.org/gnu.*}
new_url.sub "ftp.gnu.org/gnu", "ftpmirror.gnu.org"
when %r{.*mirrors.ocf.berkeley.edu/debian.*}