update-report: Do not migrate Caskroom to HOMEBREW_REPOSITORY.

This commit is contained in:
Markus Reiter 2016-09-19 15:57:36 +02:00
parent 6fe7019020
commit c0cc703516

View File

@ -231,12 +231,8 @@ module Homebrew
FileUtils.cp_r "#{HOMEBREW_REPOSITORY}/Library/Taps", "#{new_homebrew_repository}/Library/Taps"
end
if (HOMEBREW_REPOSITORY/"Caskroom").exist?
FileUtils.cp_r "#{HOMEBREW_REPOSITORY}/Caskroom", "#{new_homebrew_repository}/Caskroom"
end
unremovable_paths = []
extra_remove_paths = [".git", "Library/Locks", "Library/Taps", "Caskroom",
extra_remove_paths = [".git", "Library/Locks", "Library/Taps",
"Library/Homebrew/cask", "Library/Homebrew/test"]
(repo_files + extra_remove_paths).each do |file|
path = Pathname.new "#{HOMEBREW_REPOSITORY}/#{file}"