Commit b3354c62 authored by Boris Bügling's avatar Boris Bügling Committed by Kyle Fuller

Do not rely on *~/.cocoapods* being present.

parent 33b4e884
...@@ -9,6 +9,7 @@ module Pod ...@@ -9,6 +9,7 @@ module Pod
# known Pods. # known Pods.
# #
def aggregate def aggregate
return Source::Aggregate.new([]) unless config.repos_dir.exist?
dirs = config.repos_dir.children.select(&:directory?) dirs = config.repos_dir.children.select(&:directory?)
Source::Aggregate.new(dirs) Source::Aggregate.new(dirs)
end end
...@@ -60,6 +61,7 @@ module Pod ...@@ -60,6 +61,7 @@ module Pod
# installation of CocoaPods. # installation of CocoaPods.
# #
def all def all
return [] unless config.repos_dir.exist?
dirs = config.repos_dir.children.select(&:directory?) dirs = config.repos_dir.children.select(&:directory?)
dirs.map { |repo| Source.new(repo) } dirs.map { |repo| Source.new(repo) }
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment