Commit afa87aed authored by Andrea Mazzini's avatar Andrea Mazzini

Pod update displays the previous version of a pod

parent d3b515b3
......@@ -235,8 +235,13 @@ module Pod
pods_to_install = sandbox_state.added | sandbox_state.changed
title_options = { :verbose_prefix => "-> ".green }
root_specs.sort_by(&:name).each do |spec|
if pods_to_install.include?(spec.name)
UI.titled_section("Installing #{spec}".green, title_options) do
if pods_to_install.include?(spec.name)
if sandbox_state.changed.include?(spec.name) && sandbox.manifest
title = "Installing #{spec.name} #{spec.version} (was #{sandbox.manifest.version(spec.name)})"
else
title = "Installing #{spec}"
end
UI.titled_section(title.green, title_options) do
install_source_of_pod(spec.name)
end
else
......
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