Utils::Cp: Revert the use of Utils::Cp in dev-cmd

As per review feedback:

https://github.com/Homebrew/brew/pull/17373#pullrequestreview-2103870774
This commit is contained in:
Daiki Mizukami 2024-06-07 18:18:53 +09:00
parent 7cfcc596b9
commit d9239faad3
No known key found for this signature in database
GPG Key ID: 10478E598B944AA2

View File

@ -11,7 +11,6 @@ require "keg"
require "formula_versions"
require "utils/inreplace"
require "erb"
require "utils/cp"
require "utils/gzip"
require "api"
require "extend/hash/deep_merge"
@ -768,7 +767,7 @@ module Homebrew
all_bottle_hash = { formula_name => all_bottle_formula_hash }
puts "Copying #{filename} to #{all_filename}" if args.verbose?
Utils::Cp.copy_with_attributes filename.to_s, all_filename.to_s
FileUtils.cp filename.to_s, all_filename.to_s
puts "Writing #{all_filename.json}" if args.verbose?
all_local_json_path = Pathname(all_filename.json)