diff --git a/lib/librarian/chef/source/site.rb b/lib/librarian/chef/source/site.rb index 5d3daa6..8d0302a 100644 --- a/lib/librarian/chef/source/site.rb +++ b/lib/librarian/chef/source/site.rb @@ -309,7 +309,8 @@ def unpack_package!(path, source) subtemps.size > 1 and raise "The package archive has too many children!" subtemp = subtemps.first debug { "Moving #{relative_path_to(subtemp)} to #{relative_path_to(path)}" } - FileUtils.mv(subtemp, path) + FileUtils.cp_r(subtemp, path) + FileUtils.rm_rf(subtemp) ensure temp.rmtree if temp && temp.exist? end