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
d3b1448b
Commit
d3b1448b
authored
Sep 25, 2014
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SourcesManager] Fix reporting of failure to add a repo by url
parent
539dc7d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
sources_manager.rb
lib/cocoapods/sources_manager.rb
+8
-6
No files found.
lib/cocoapods/sources_manager.rb
View file @
d3b1448b
...
@@ -36,14 +36,16 @@ module Pod
...
@@ -36,14 +36,16 @@ module Pod
def
find_or_create_source_with_url
(
url
)
def
find_or_create_source_with_url
(
url
)
unless
source
=
source_with_url
(
url
)
unless
source
=
source_with_url
(
url
)
name
=
name_for_url
(
url
)
name
=
name_for_url
(
url
)
Command
::
Repo
::
Add
.
new
(
CLAide
::
ARGV
.
new
([
name
,
url
])).
run
begin
Command
::
Repo
::
Add
.
new
(
CLAide
::
ARGV
.
new
([
name
,
url
])).
run
rescue
Informative
=>
e
raise
Informative
,
"Unable to add a source with url `
#{
url
}
` "
\
"named `
#{
name
}
`.
\n
You can add it manually via "
\
"`pod repo add NAME
#{
url
}
`."
end
source
=
source_with_url
(
url
)
source
=
source_with_url
(
url
)
end
end
unless
source
raise
Informative
,
"Unable to add a source with url `
#{
url
}
` named "
\
"`
#{
name
}
`.
\n
You can add it manually via `pod repo add NAME "
\
"
#{
url
}
`.
\n\n
#{
output
}
"
end
source
source
end
end
...
...
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