Commit cb854fa9 authored by Fabio Pelosin's avatar Fabio Pelosin

[Lockfile] Return multiple dependencies to lock a Pod

parent c4774bc5
...@@ -60,7 +60,7 @@ GIT ...@@ -60,7 +60,7 @@ GIT
GIT GIT
remote: https://github.com/CocoaPods/Core.git remote: https://github.com/CocoaPods/Core.git
revision: 9d9842612c254900fbf515bab5ec3eec32f34947 revision: 85ef1bf5917c853def368d6ca5a5ab955486b4d7
branch: fabio/specs-sources branch: fabio/specs-sources
specs: specs:
cocoapods-core (0.33.1) cocoapods-core (0.33.1)
......
...@@ -150,7 +150,8 @@ module Pod ...@@ -150,7 +150,8 @@ module Pod
UI.section 'Finding Podfile changes' do UI.section 'Finding Podfile changes' do
pods_by_state = lockfile.detect_changes_with_podfile(podfile) pods_by_state = lockfile.detect_changes_with_podfile(podfile)
pods_by_state.dup.each do |state, full_names| pods_by_state.dup.each do |state, full_names|
pods_by_state[state] = full_names.map { |fn| Specification.root_name(fn) } pods = full_names.map { |fn| Specification.root_name(fn) }.uniq
pods_by_state[state] = pods
end end
pods_state = SpecsState.new(pods_by_state) pods_state = SpecsState.new(pods_by_state)
pods_state.print pods_state.print
...@@ -243,8 +244,8 @@ module Pod ...@@ -243,8 +244,8 @@ module Pod
locking_pods = locking_pods.select { |pod| !update[:pods].include?(pod) } locking_pods = locking_pods.select { |pod| !update[:pods].include?(pod) }
end end
locking_pods.map do |pod| locking_pods.map do |pod|
lockfile.dependency_to_lock_pod_named(pod) lockfile.dependencies_to_lock_pod_named(pod)
end end.flatten
end 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