Fix create-packages.rb script under Ruby 1.9.2

The 'dependency' variable is now just a string instead of array,
avoid trying to iterate over it with .each
This commit is contained in:
Robert Knight 2011-11-02 16:20:35 +00:00
parent 99815159b4
commit df89da7ebd
1 changed files with 4 additions and 6 deletions

View File

@ -180,12 +180,10 @@ class UpdateScriptGenerator
def deps_to_xml()
deps_elem = REXML::Element.new("dependencies")
deps = @config.updater_binary
deps.each do |dependency|
dep_elem = REXML::Element.new("file")
dep_elem.text = dependency
deps_elem.add_element dep_elem
end
dependency = @config.updater_binary
dep_elem = REXML::Element.new("file")
dep_elem.text = dependency
deps_elem.add_element dep_elem
return deps_elem
end