Commit 93d04b9e authored by Marius Rackwitz's avatar Marius Rackwitz

[Cache] Fix the cache to handle re-downloads properly

parent 5620fd41
...@@ -184,6 +184,7 @@ module Pod ...@@ -184,6 +184,7 @@ module Pod
def copy_and_clean(source, destination, spec) def copy_and_clean(source, destination, spec)
specs_by_platform = group_subspecs_by_platform(spec) specs_by_platform = group_subspecs_by_platform(spec)
destination.parent.mkpath destination.parent.mkpath
FileUtils.rm_rf(destination)
FileUtils.cp_r(source, destination) FileUtils.cp_r(source, destination)
Pod::Installer::PodSourcePreparer.new(spec, destination).prepare! Pod::Installer::PodSourcePreparer.new(spec, destination).prepare!
Sandbox::PodDirCleaner.new(destination, specs_by_platform).clean! Sandbox::PodDirCleaner.new(destination, specs_by_platform).clean!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment