Merge pull request #11272 from MikeMcQuaid/bottle_more_filename_verbose

dev-cmd/bottle: output more filenames when verbose.
This commit is contained in:
Mike McQuaid 2021-04-28 21:03:31 +01:00 committed by GitHub
commit 8d35744581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -581,6 +581,7 @@ module Homebrew
} }
end end
puts "Writing #{filename.json}" if args.verbose?
json_path = Pathname(filename.json) json_path = Pathname(filename.json)
json_path.unlink if json_path.exist? json_path.unlink if json_path.exist?
json_path.write(JSON.pretty_generate(json)) json_path.write(JSON.pretty_generate(json))
@ -673,6 +674,7 @@ module Homebrew
puts "Copying #{filename} to #{all_filename}" if args.verbose? puts "Copying #{filename} to #{all_filename}" if args.verbose?
FileUtils.cp filename.to_s, all_filename.to_s FileUtils.cp filename.to_s, all_filename.to_s
puts "Writing #{filename.json}" if args.verbose?
all_local_json_path = Pathname(filename.json) all_local_json_path = Pathname(filename.json)
all_local_json_path.unlink if all_local_json_path.exist? all_local_json_path.unlink if all_local_json_path.exist?
all_local_json_path.write(JSON.pretty_generate(all_bottle_hash)) all_local_json_path.write(JSON.pretty_generate(all_bottle_hash))