Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[Install] Fix for --no-update option.

  • Loading branch information...
commit 01a487cf531bc7e09610c98f64e32811286974e3 1 parent c41fec4
@fabiopelosin fabiopelosin authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  lib/cocoapods/command/install.rb
  2. +3 −3 lib/cocoapods/resolver.rb
View
2  lib/cocoapods/command/install.rb
@@ -35,7 +35,7 @@ def initialize(argv)
config.clean = !argv.option('--no-clean')
config.generate_docs = !argv.option('--no-doc')
config.integrate_targets = !argv.option('--no-integrate')
- config.skip_repo_update = !argv.option('--no-update')
+ config.skip_repo_update = argv.option('--no-update')
super unless argv.empty?
end
View
6 lib/cocoapods/resolver.rb
@@ -81,13 +81,13 @@ def resolve
end
unless config.skip_repo_update?
- UI.section 'Updating Spec Repositories' do
+ UI.section 'Updating spec repositories' do
Command::Repo.new(Command::ARGV.new(["update"])).run
- end if !@pods_by_state || !(@pods_by_state[:added] + @pods_by_state[:changed]).empty? || update_mode
+ end if !@lockfile || !(@pods_by_state[:added] + @pods_by_state[:changed]).empty? || update_mode
end
@podfile.target_definitions.values.each do |target_definition|
- UI.section "Resolving dependencies for target `#{target_definition.name}' (#{target_definition.platform}):" do
+ UI.section "Resolving dependencies for target `#{target_definition.name}' (#{target_definition.platform})" do
@loaded_specs = []
find_dependency_specs(@podfile, target_definition.dependencies, target_definition)
@specs_by_target[target_definition] = @cached_specs.values_at(*@loaded_specs).sort_by(&:name)
Please sign in to comment.
Something went wrong with that request. Please try again.