preserve attributes on packaging when using ruby 1.9.2
see http://bugs.ruby-lang.org/issues/4507
This commit is contained in:
parent
41e4157443
commit
cac79cf409
|
@ -63,9 +63,9 @@ module Vagrant
|
||||||
|
|
||||||
# Copy direcotry contents recursively.
|
# Copy direcotry contents recursively.
|
||||||
if File.directory?(from)
|
if File.directory?(from)
|
||||||
FileUtils.cp_r(Dir.glob(from), to.parent)
|
FileUtils.cp_r(Dir.glob(from), to.parent, :preserve => true)
|
||||||
else
|
else
|
||||||
FileUtils.cp(from, to)
|
FileUtils.cp(from, to, :preserve => true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue