mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2024-11-25 13:21:00 +00:00
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:
parent
99815159b4
commit
df89da7ebd
1 changed files with 4 additions and 6 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue