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:
Mike McQuaid 2016-12-23 19:42:31 +00:00 committed by GitHub
commit 9bfeb91562

View File

@ -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
[