diff --git a/Library/Homebrew/dev-cmd/bottle.rb b/Library/Homebrew/dev-cmd/bottle.rb index 66c8b28a3f079931ff8ad9228b2ab3a198504143..e5168bd931d7fd8037576b5eb373199636af07e3 100644 --- a/Library/Homebrew/dev-cmd/bottle.rb +++ b/Library/Homebrew/dev-cmd/bottle.rb @@ -278,10 +278,7 @@ module Homebrew keg.find do |file| if file.symlink? - # Ruby does not support `File.lutime` yet. - # 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 + File.lutime(tab.source_modified_time, tab.source_modified_time, file) else file.utime(tab.source_modified_time, tab.source_modified_time) end