Commit 86e6e697 authored by Samuel E. Giddins's avatar Samuel E. Giddins

Merge pull request #3498 from CocoaPods/mr-fix-download-cache

[Cache] Fix the cache to handle re-downloads properly
parents b4abe85e 7a41272b
......@@ -8,6 +8,11 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
##### Bug Fixes
* [Cache] Fixes a bug that caused that a pod, which was cached once is not updated
correctly when needed e.g. for `pod spec lint`.
[Marius Rackwitz](https://github.com/mrackwitz)
[#3498](https://github.com/CocoaPods/CocoaPods/issues/3498)
* Only add the "Embed Pods Frameworks" script for application and unit test targets.
[Marius Rackwitz](https://github.com/mrackwitz)
[#3440](https://github.com/CocoaPods/CocoaPods/issues/3440)
......
......@@ -184,6 +184,7 @@ module Pod
def copy_and_clean(source, destination, spec)
specs_by_platform = group_subspecs_by_platform(spec)
destination.parent.mkpath
FileUtils.rm_rf(destination)
FileUtils.cp_r(source, destination)
Pod::Installer::PodSourcePreparer.new(spec, destination).prepare!
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