r491 - trunk/scripts

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Feb 15 05:51:23 EST 2008


Author: icculus
Date: 2008-02-15 05:51:22 -0500 (Fri, 15 Feb 2008)
New Revision: 491

Modified:
   trunk/scripts/mojosetup_mainline.lua
Log:
Option-specific EULAs would only show if all parent options also had a EULA,
 due to a logic bug. Fixed.


Modified: trunk/scripts/mojosetup_mainline.lua
===================================================================
--- trunk/scripts/mojosetup_mainline.lua	2008-02-15 10:33:56 UTC (rev 490)
+++ trunk/scripts/mojosetup_mainline.lua	2008-02-15 10:51:22 UTC (rev 491)
@@ -1263,9 +1263,11 @@
             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




More information about the mojosetup-commits mailing list