Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
01a487cf
Commit
01a487cf
authored
Sep 21, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Install] Fix for --no-update option.
parent
c41fec41
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
install.rb
lib/cocoapods/command/install.rb
+1
-1
resolver.rb
lib/cocoapods/resolver.rb
+3
-3
No files found.
lib/cocoapods/command/install.rb
View file @
01a487cf
...
@@ -35,7 +35,7 @@ module Pod
...
@@ -35,7 +35,7 @@ module Pod
config
.
clean
=
!
argv
.
option
(
'--no-clean'
)
config
.
clean
=
!
argv
.
option
(
'--no-clean'
)
config
.
generate_docs
=
!
argv
.
option
(
'--no-doc'
)
config
.
generate_docs
=
!
argv
.
option
(
'--no-doc'
)
config
.
integrate_targets
=
!
argv
.
option
(
'--no-integrate'
)
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?
super
unless
argv
.
empty?
end
end
...
...
lib/cocoapods/resolver.rb
View file @
01a487cf
...
@@ -81,13 +81,13 @@ module Pod
...
@@ -81,13 +81,13 @@ module Pod
end
end
unless
config
.
skip_repo_update?
unless
config
.
skip_repo_update?
UI
.
section
'Updating
Spec R
epositories'
do
UI
.
section
'Updating
spec r
epositories'
do
Command
::
Repo
.
new
(
Command
::
ARGV
.
new
([
"update"
])).
run
Command
::
Repo
.
new
(
Command
::
ARGV
.
new
([
"update"
])).
run
end
if
!
@
pods_by_stat
e
||
!
(
@pods_by_state
[
:added
]
+
@pods_by_state
[
:changed
]).
empty?
||
update_mode
end
if
!
@
lockfil
e
||
!
(
@pods_by_state
[
:added
]
+
@pods_by_state
[
:changed
]).
empty?
||
update_mode
end
end
@podfile
.
target_definitions
.
values
.
each
do
|
target_definition
|
@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
=
[]
@loaded_specs
=
[]
find_dependency_specs
(
@podfile
,
target_definition
.
dependencies
,
target_definition
)
find_dependency_specs
(
@podfile
,
target_definition
.
dependencies
,
target_definition
)
@specs_by_target
[
target_definition
]
=
@cached_specs
.
values_at
(
*
@loaded_specs
).
sort_by
(
&
:name
)
@specs_by_target
[
target_definition
]
=
@cached_specs
.
values_at
(
*
@loaded_specs
).
sort_by
(
&
:name
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment