Revert "dev-cmd/bottle: set uid/gid."

This commit is contained in:
Mike McQuaid 2021-04-16 16:58:21 +01:00 committed by GitHub
parent 270a7c1b96
commit 08b848044e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -389,14 +389,7 @@ module Homebrew
sudo_purge sudo_purge
# Unset the owner/group for reproducible bottles. # Unset the owner/group for reproducible bottles.
# Tar then gzip for reproducible bottles. # Tar then gzip for reproducible bottles.
owner_group_args = if OS.mac? safe_system "tar", "--create", "--numeric-owner", "--file", tar_path, "#{f.name}/#{f.pkg_version}"
["--uid", "0", "--gid", "0"]
else
["--owner", "0", "--group", "0"]
end
safe_system "tar", "--create", "--numeric-owner",
*owner_group_args,
"--file", tar_path, "#{f.name}/#{f.pkg_version}"
sudo_purge sudo_purge
# Set more times for reproducible bottles. # Set more times for reproducible bottles.
tar_path.utime(tab.source_modified_time, tab.source_modified_time) tar_path.utime(tab.source_modified_time, tab.source_modified_time)