Commit 29320c23 authored by Darryl's avatar Darryl

[Installer] make reintegration text less verbose.

parent 6e408fc8
...@@ -502,11 +502,11 @@ module Pod ...@@ -502,11 +502,11 @@ module Pod
def deintegrate_if_different_major_version def deintegrate_if_different_major_version
return unless lockfile return unless lockfile
return if lockfile.cocoapods_version.major == Version.create(VERSION).major return if lockfile.cocoapods_version.major == Version.create(VERSION).major
UI.section('Fully deintegrating due to major version update') do UI.section('Re-creating CocoaPods due to major version update.') do
projects = Pathname.glob(config.installation_root + '*.xcodeproj').map { |path| Xcodeproj::Project.open(path) } projects = Pathname.glob(config.installation_root + '*.xcodeproj').map { |path| Xcodeproj::Project.open(path) }
deintegrator = Deintegrator.new deintegrator = Deintegrator.new
projects.sort.each do |project| projects.sort.each do |project|
deintegrator.deintegrate_project(project) config.with_changes(silent: true) { deintegrator.deintegrate_project(project) }
project.save if project.dirty? project.save if project.dirty?
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