mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2024-11-10 06:31:49 +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()
|
||||
deps_elem = REXML::Element.new("dependencies")
|
||||
deps = @config.updater_binary
|
||||
deps.each do |dependency|
|
||||
dependency = @config.updater_binary
|
||||
dep_elem = REXML::Element.new("file")
|
||||
dep_elem.text = dependency
|
||||
deps_elem.add_element dep_elem
|
||||
end
|
||||
return deps_elem
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue