File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,8 @@ file "pkg/rubygems-#{v}.tgz" => "pkg/rubygems-#{v}" do
252252 tar_version = `tar --version`
253253 if tar_version . include? ( "bsdtar" )
254254 # bsdtar, as used by at least FreeBSD and macOS, uses `--uname` and `--gname`.
255- sh "tar -czf rubygems-#{ v } .tgz --uname=rubygems:0 --gname=rubygems:0 rubygems-#{ v } "
255+ # COPYFILE_DISABLE prevents storing macOS extended attribute data in `._*` files inside the archive
256+ sh ( { "COPYFILE_DISABLE" => "1" } , "tar -czf rubygems-#{ v } .tgz --uname=rubygems:0 --gname=rubygems:0 rubygems-#{ v } " )
256257 else # If a third variant is added, change this line to: elsif tar_version =~ /GNU tar/
257258 # GNU Tar, as used by many Linux distros, uses `--owner` and `--group`.
258259 sh "tar -czf rubygems-#{ v } .tgz --owner=rubygems:0 --group=rubygems:0 rubygems-#{ v } "
You can’t perform that action at this time.
0 commit comments