Skip to content

Commit

Permalink
[Install/Update] Forgot to stage two files :-).
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed Aug 9, 2012
1 parent 33c9710 commit c290bf9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions lib/cocoapods/command/update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ def run
raise Informative, "No `Podfile.lock' found in the current working directory, run `pod install'."
end

# if @update_repo
# print_title 'Updating Spec Repositories', true
# Repo.new(ARGV.new(["update"])).run
# end
if @update_repo
print_title 'Updating Spec Repositories', true
Repo.new(ARGV.new(["update"])).run
end

sandbox = Sandbox.new(config.project_pods_root)
resolver = Resolver.new(podfile, lockfile, sandbox)
Expand Down
7 changes: 4 additions & 3 deletions lib/cocoapods/resolver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,13 @@ def resolve
end
end

lock_dependencies_version unless update_mode
@cached_specs = {}
@targets_and_specs = {}
@external_pods = []
@dependencies_podfile_incompatible = []
@removed_pods = []

lock_dependencies_version unless update_mode

@podfile.target_definitions.values.each do |target_definition|
puts "\nResolving dependencies for target `#{target_definition.name}' (#{target_definition.platform}):".green if config.verbose?
Expand Down Expand Up @@ -161,8 +164,6 @@ def removed_pods
#
def lock_dependencies_version
return unless lockfile
@dependencies_podfile_incompatible = []
@removed_pods = []

puts "\nFinding updated or removed pods:".green if config.verbose?
podfile_deps_names = podfile_dependencies.map(&:name)
Expand Down

0 comments on commit c290bf9

Please sign in to comment.