From 40a36e422eb08926db837ef9fcf00044f93945fb Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 28 Apr 2021 20:25:02 +0100 Subject: [PATCH] dev-cmd/bottle: output more filenames when verbose. More debugging for the bottle rebuild workflow. --- Library/Homebrew/dev-cmd/bottle.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/dev-cmd/bottle.rb b/Library/Homebrew/dev-cmd/bottle.rb index 3165b597e4..371974a4ee 100644 --- a/Library/Homebrew/dev-cmd/bottle.rb +++ b/Library/Homebrew/dev-cmd/bottle.rb @@ -581,6 +581,7 @@ module Homebrew } end + puts "Writing #{filename.json}" if args.verbose? json_path = Pathname(filename.json) json_path.unlink if json_path.exist? json_path.write(JSON.pretty_generate(json)) @@ -673,6 +674,7 @@ module Homebrew puts "Copying #{filename} to #{all_filename}" if args.verbose? 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.unlink if all_local_json_path.exist? all_local_json_path.write(JSON.pretty_generate(all_bottle_hash))