Permalink
Browse files

[Install/Update] Forgot to stage two files :-).

  • Loading branch information...
1 parent 33c9710 commit c290bf9f6894281329faf0ff5df2b949a65a9744 @fabiopelosin fabiopelosin committed Aug 9, 2012
Showing with 8 additions and 7 deletions.
  1. +4 −4 lib/cocoapods/command/update.rb
  2. +4 −3 lib/cocoapods/resolver.rb
@@ -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)
@@ -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?
@@ -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)

0 comments on commit c290bf9

Please sign in to comment.