Skip to content
This repository has been archived by the owner on Jul 2, 2018. It is now read-only.

Commit

Permalink
Fix a bug that seedfile won't be written when there's no seeds in see…
Browse files Browse the repository at this point in the history
…dfile.
  • Loading branch information
devxoul committed May 13, 2015
1 parent 2077be3 commit 800c5fe
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/cocoaseeds/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -371,13 +371,11 @@ def configure_phase
# @!visibility private
#
def build_lockfile
if self.seeds.length > 0
tree = { "SEEDS" => [] }
self.seeds.each do |name, seed|
tree["SEEDS"] << "#{name} (#{seed.version})"
end
File.write(self.lockfile_path, YAML.dump(tree))
tree = { "SEEDS" => [] }
self.seeds.each do |name, seed|
tree["SEEDS"] << "#{name} (#{seed.version})"
end
File.write(self.lockfile_path, YAML.dump(tree))
end

# Prints a message if {#mute} is `false`.
Expand Down

0 comments on commit 800c5fe

Please sign in to comment.