r410 - trunk

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun Jan 13 07:48:19 EST 2008


Author: icculus
Date: 2008-01-13 07:48:19 -0500 (Sun, 13 Jan 2008)
New Revision: 410

Modified:
   trunk/docs.txt
Log:
Updated documentation.


Modified: trunk/docs.txt
===================================================================
--- trunk/docs.txt	2008-01-13 12:32:59 UTC (rev 409)
+++ trunk/docs.txt	2008-01-13 12:48:19 UTC (rev 410)
@@ -267,6 +267,12 @@
     Setup.Package table as a parameter.
 
 
+   updateurl (no default, mustBeUrl)
+
+    This is written to the manifest files for the aid of external tools, but
+    isn't currently used by MojoSetup itself.
+
+
    splash (no default, mustBeString, cantBeEmpty)
 
     (!!! FIXME) This attribute is for future expansion.
@@ -298,11 +304,6 @@
     (!!! FIXME) This attribute is for future expansion.
 
 
-   update_url (no default, mustBeString, mustBeUrl)
-
-    (!!! FIXME) This attribute is for future expansion.
-
-
    superuser (default false, mustBeBool)
 
     (!!! FIXME) This attribute is for future expansion.
@@ -958,7 +959,7 @@
   MojoSetup.info.ui
 
     This is a string (not a function!) of the UI plugin that MojoSetup chose.
-    system. This is currently one of "stdio", "ncurses", "macosx", "gtkplus2",
+    This is currently one of "stdio", "ncurses", "macosx", "gtkplus2", "www",
     or one of several others, depending on your build and target platform.
     It's best to not rely on this being within a specific set of values.
     
@@ -1035,7 +1036,11 @@
     a change to the filesystem. Each of these elements is an array of tables.
 
       for option,items in pairs(MojoSetup.manifest) do
-          print("Option: " .. option.description)
+          local desc = option
+          if type(desc) == "table" then  -- could be a string in some cases!
+              desc = desc.description
+          end
+          print("Option: " .. desc)
           for i,item in ipairs(items) do
               -- ... do stuff with "item" here ...
           end
@@ -1052,8 +1057,10 @@
           -- Checksums may or may not exist in this table, depending on how
           --  MojoSetup was compiled. You can iterate to find out what's there:
           print("checksums:")
-          for k,v in pairs(item.checksums) do
-              print("  " .. k .. ": " .. v)   -- "crc32: 92FAB211E", etc.
+          if item.checksums ~= nil then
+              for k,v in pairs(item.checksums) do
+                  print("  " .. k .. ": " .. v)   -- "crc32: 92FAB211E", etc.
+              end
           end
       end
 




More information about the mojosetup-commits mailing list