Skip to content
Snippets Groups Projects
Unverified Commit 17d92a2d authored by Dustin Rodrigues's avatar Dustin Rodrigues Committed by GitHub
Browse files

Merge pull request #8630 from dtrodrigues/bottle-lutime

bottle: use File.lutime instead of system call
parents 2ec82666 8ab5ea52
No related branches found
No related tags found
No related merge requests found
...@@ -278,10 +278,7 @@ module Homebrew ...@@ -278,10 +278,7 @@ module Homebrew
keg.find do |file| keg.find do |file|
if file.symlink? if file.symlink?
# Ruby does not support `File.lutime` yet. File.lutime(tab.source_modified_time, tab.source_modified_time, file)
# Shellout using `touch` to change modified time of symlink itself.
system "/usr/bin/touch", "-h",
"-t", tab.source_modified_time.strftime("%Y%m%d%H%M.%S"), file
else else
file.utime(tab.source_modified_time, tab.source_modified_time) file.utime(tab.source_modified_time, tab.source_modified_time)
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment