Merge pull request #11145 from Bo98/json-tab-changed_files-fix

dev-cmd/bottle: fix INSTALL_RECEIPT appearing in changed_files
This commit is contained in:
Bo Anderson 2021-04-14 22:06:57 +01:00 committed by GitHub
commit 8853fb6c13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -380,8 +380,9 @@ module Homebrew
tab.poured_from_bottle = false
tab.HEAD = nil
tab.time = nil
tab.changed_files = changed_files
tab.changed_files = changed_files.dup
if args.only_json_tab?
tab.changed_files.delete(Pathname.new(Tab::FILENAME))
tab.tabfile.unlink
else
tab.write