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

[Analyzer] Ensure external sources are downloaded when needed

Closes https://github.com/CocoaPods/CocoaPods/issues/2494.
parent 1488176f
...@@ -7,7 +7,7 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides ...@@ -7,7 +7,7 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
##### Enhacements ##### Enhacements
* The `pod push` has been removed as it has been deprecated in favour of `pod * The `pod push` has been removed as it has been deprecated in favour of `pod
repo push` in CocoaPods 0.33. repo push` in CocoaPods 0.33.
[Fabio Pelosin](https://github.com/fabiopelosin) [Fabio Pelosin](https://github.com/fabiopelosin)
##### Bug Fixes ##### Bug Fixes
...@@ -16,6 +16,11 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides ...@@ -16,6 +16,11 @@ To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides
[Samuel Giddins](https://github.com/segiddins) [Samuel Giddins](https://github.com/segiddins)
[#2624](https://github.com/CocoaPods/CocoaPods/issues/2624) [#2624](https://github.com/CocoaPods/CocoaPods/issues/2624)
* Ensure that external sources (as specified in the `Podfile`) are downloaded
when their source is missing, even if their specification is present.
[Samuel Giddins](https://github.com/segiddins)
[#2494](https://github.com/CocoaPods/CocoaPods/issues/2494)
## 0.34.2 ## 0.34.2
......
...@@ -283,7 +283,7 @@ module Pod ...@@ -283,7 +283,7 @@ module Pod
end end
deps_to_fetch = deps_with_external_source.select { |dep| pods_to_fetch.include?(dep.root_name) } deps_to_fetch = deps_with_external_source.select { |dep| pods_to_fetch.include?(dep.root_name) }
deps_to_fetch_if_needed = deps_with_external_source.select { |dep| result.podfile_state.unchanged.include?(dep.root_name) } deps_to_fetch_if_needed = deps_with_external_source.select { |dep| result.podfile_state.unchanged.include?(dep.root_name) }
deps_to_fetch += deps_to_fetch_if_needed.select { |dep| sandbox.specification(dep.root_name).nil? || !dep.external_source[:local].nil? || !dep.external_source[:path].nil? } deps_to_fetch += deps_to_fetch_if_needed.select { |dep| sandbox.specification(dep.root_name).nil? || !dep.external_source[:local].nil? || !dep.external_source[:path].nil? || !sandbox.pod_dir(dep.root_name).directory? }
end end
unless deps_to_fetch.empty? unless deps_to_fetch.empty?
......
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