preserve attributes on packaging when using ruby 1.9.2

see http://bugs.ruby-lang.org/issues/4507
This commit is contained in:
Zsolt Takács 2012-05-26 16:47:49 +02:00 committed by Mitchell Hashimoto
parent 41e4157443
commit cac79cf409
1 changed files with 2 additions and 2 deletions

View File

@ -63,9 +63,9 @@ module Vagrant
# Copy direcotry contents recursively.
if File.directory?(from)
FileUtils.cp_r(Dir.glob(from), to.parent)
FileUtils.cp_r(Dir.glob(from), to.parent, :preserve => true)
else
FileUtils.cp(from, to)
FileUtils.cp(from, to, :preserve => true)
end
end
end