aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/unpack.rb
diff options
context:
space:
mode:
authorXu Cheng2016-01-14 20:42:37 +0800
committerXu Cheng2016-01-15 16:26:04 +0800
commit4a8632e54d02b8c71ab581f18287a682e1640bcc (patch)
treec128039cfa443bd7bb9d86bd4ba846fee79f0f08 /Library/Homebrew/cmd/unpack.rb
parent8deec537d15d35821be4e8e253ad2a877535cbc8 (diff)
downloadbrew-4a8632e54d02b8c71ab581f18287a682e1640bcc.tar.bz2
unpack: preserve file attributes like mtime
Closes Homebrew/homebrew#48068. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/cmd/unpack.rb')
-rw-r--r--Library/Homebrew/cmd/unpack.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/unpack.rb b/Library/Homebrew/cmd/unpack.rb
index 3a0630d6a..68b81bd2f 100644
--- a/Library/Homebrew/cmd/unpack.rb
+++ b/Library/Homebrew/cmd/unpack.rb
@@ -28,7 +28,7 @@ module Homebrew
ENV["VERBOSE"] = "1" # show messages about tar
f.brew do
f.patch if ARGV.flag?("--patch")
- cp_r getwd, stage_dir
+ cp_r getwd, stage_dir, :preserve => true
end
ENV["VERBOSE"] = nil