Merge pull request #1715 from zmwangx/bump-formula-pr-fix-removal-of-old-mirror
bump-formula-pr: fix removal of old mirrors
This commit is contained in:
commit
9bfeb91562
@ -156,7 +156,9 @@ module Homebrew
|
||||
replacement_pairs << [/^ revision \d+\n(\n( head "))?/m, "\\2"]
|
||||
end
|
||||
|
||||
replacement_pairs << [/(^ mirror .*\n)?/, ""] if requested_spec == :stable
|
||||
replacement_pairs += formula_spec.mirrors.map do |mirror|
|
||||
[/ +mirror \"#{mirror}\"\n/m, ""]
|
||||
end
|
||||
|
||||
replacement_pairs += if new_url_hash
|
||||
[
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user