Use with_env in brew unpack.

This commit is contained in:
Markus Reiter 2020-07-31 19:48:03 +02:00
parent cd402358b0
commit ce0fa22efb

View File

@ -55,12 +55,13 @@ module Homebrew
oh1 "Unpacking #{Formatter.identifier(f.full_name)} to: #{stage_dir}"
ENV["VERBOSE"] = "1" # show messages about tar
f.brew do
f.patch if args.patch?
cp_r getwd, stage_dir, preserve: true
# show messages about tar
with_env VERBOSE: "1" do
f.brew do
f.patch if args.patch?
cp_r getwd, stage_dir, preserve: true
end
end
ENV["VERBOSE"] = nil
next unless args.git?