repair setup_tar_and_args! method

This commit is contained in:
hyuraku 2023-02-07 23:45:09 +09:00
parent 10d4f06a30
commit 853421e968
3 changed files with 5 additions and 4 deletions

View File

@ -236,8 +236,7 @@ module Homebrew
def setup_tar_and_args!(args, _mtime) def setup_tar_and_args!(args, _mtime)
# Without --only-json-tab bottles are never reproducible # Without --only-json-tab bottles are never reproducible
default_tar_args = ["tar", [].freeze].freeze ["tar", [].freeze].freeze
return default_tar_args unless args.only_json_tab?
end end
alias generic_setup_tar_and_args! setup_tar_and_args! alias generic_setup_tar_and_args! setup_tar_and_args!

View File

@ -7,7 +7,8 @@ module Homebrew
module_function module_function
def setup_tar_and_args!(args, mtime) def setup_tar_and_args!(args, mtime)
generic_setup_tar_and_args!(args, mtime) default_tar_args = generic_setup_tar_and_args!(args, mtime)
return default_tar_args unless args.only_json_tab?
["tar", gnutar_args(mtime)].freeze ["tar", gnutar_args(mtime)].freeze
end end

View File

@ -7,7 +7,8 @@ module Homebrew
module_function module_function
def setup_tar_and_args!(args, mtime) def setup_tar_and_args!(args, mtime)
generic_setup_tar_and_args!(args, mtime) default_tar_args = generic_setup_tar_and_args!(args, mtime)
return default_tar_args unless args.only_json_tab?
# Use gnu-tar on macOS as it can be set up for reproducibility better than libarchive. # Use gnu-tar on macOS as it can be set up for reproducibility better than libarchive.
begin begin