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
8479939a
Commit
8479939a
authored
Dec 29, 2015
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Downloader] Ensure can_cache and cache_path are consistent
parent
b994b4af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
downloader.rb
lib/cocoapods/downloader.rb
+4
-2
No files found.
lib/cocoapods/downloader.rb
View file @
8479939a
...
@@ -28,9 +28,11 @@ module Pod
...
@@ -28,9 +28,11 @@ module Pod
request
,
request
,
target
,
target
,
can_cache:
true
,
can_cache:
true
,
cache_path:
can_cache
&&
!
Config
.
instance
.
skip_download_cache
&&
Config
.
instance
.
cache_root
+
'Pods'
cache_path:
Config
.
instance
.
cache_root
+
'Pods'
)
)
if
cache_path
can_cache
&&=
!
Config
.
instance
.
skip_download_cache
if
can_cache
raise
ArgumentError
,
'Must provide a `cache_path` when caching.'
unless
cache_path
cache
=
Cache
.
new
(
cache_path
)
cache
=
Cache
.
new
(
cache_path
)
result
=
cache
.
download_pod
(
request
)
result
=
cache
.
download_pod
(
request
)
else
else
...
...
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