From cac79cf40940ef394fd06f78102b639608b0b4e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zsolt=20Taka=CC=81cs?= Date: Sat, 26 May 2012 16:47:49 +0200 Subject: [PATCH] preserve attributes on packaging when using ruby 1.9.2 see http://bugs.ruby-lang.org/issues/4507 --- lib/vagrant/action/general/package.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/action/general/package.rb b/lib/vagrant/action/general/package.rb index 158fee5f7..aa78313cf 100644 --- a/lib/vagrant/action/general/package.rb +++ b/lib/vagrant/action/general/package.rb @@ -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