Merge pull request #11270 from MikeMcQuaid/brew_bottle_puts

dev-cmd/bottle: add missing verbose puts.
This commit is contained in:
Mike McQuaid 2021-04-28 14:48:21 +01:00 committed by GitHub
commit 421ae4f95a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -662,7 +662,7 @@ module Homebrew
all_bottle_hash = { formula_name => all_bottle_formula_hash } all_bottle_hash = { formula_name => all_bottle_formula_hash }
"Copying #{local_filename} to #{all_local_filename}" if args.verbose? puts "Copying #{local_filename} to #{all_local_filename}" if args.verbose?
FileUtils.cp local_filename, all_local_filename FileUtils.cp local_filename, all_local_filename
all_local_json_path = Pathname(all_local_json_filename) all_local_json_path = Pathname(all_local_json_filename)
@ -670,7 +670,7 @@ module Homebrew
all_local_json_path.write(JSON.pretty_generate(all_bottle_hash)) all_local_json_path.write(JSON.pretty_generate(all_bottle_hash))
end end
"Removing #{local_filename} and #{local_json_filename}" if args.verbose? puts "Removing #{local_filename} and #{local_json_filename}" if args.verbose?
FileUtils.rm_f [local_filename, local_json_filename] FileUtils.rm_f [local_filename, local_json_filename]
end end
end end