Commit f8340f5d authored by Samuel E. Giddins's avatar Samuel E. Giddins

Fix caching of podspec: dependencies

parent 872dc480
......@@ -76,8 +76,7 @@ module Pod
# @return [void]
#
def download_source
released = !local? && !head_pod? && !predownloaded?
download_result = config.download_cache.download_pod(root_spec, released, nil, head_pod?)
download_result = config.download_cache.download_pod(root_spec, released?, nil, head_pod?)
root.rmtree if root.exist?
FileUtils.cp_r(download_result.location, root)
......@@ -162,6 +161,10 @@ module Pod
sandbox.head_pod?(root_spec.name)
end
def released?
!local? && !head_pod? && !predownloaded? && sandbox.specification(root_spec.name) != root_spec
end
#-----------------------------------------------------------------------#
end
end
......
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