Skip to content

Commit

Permalink
Option-specific EULAs would only show if all parent options also had …
Browse files Browse the repository at this point in the history
…a EULA,

 due to a logic bug. Fixed.
  • Loading branch information
icculus committed Feb 15, 2008
1 parent 7cdc68a commit 28845ea
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/mojosetup_mainline.lua
Expand Up @@ -1263,9 +1263,11 @@ local function do_install(install)
local options = opts['options']
if options ~= nil then
for k,v in pairs(options) do
if v.value and v.eulas then
for ek,ev in pairs(v.eulas) do
option_eulas[#option_eulas+1] = ev
if v.value then
if v.eulas ~= nil then
for ek,ev in pairs(v.eulas) do
option_eulas[#option_eulas+1] = ev
end
end
find_option_eulas(v)
end
Expand Down

0 comments on commit 28845ea

Please sign in to comment.