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

View file

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