r489 - trunk/scripts

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Fri Feb 15 05:22:21 EST 2008


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

Modified:
   trunk/scripts/mojosetup_mainline.lua
Log:
Fixed manifest string.


Modified: trunk/scripts/mojosetup_mainline.lua
===================================================================
--- trunk/scripts/mojosetup_mainline.lua	2008-02-15 08:50:33 UTC (rev 488)
+++ trunk/scripts/mojosetup_mainline.lua	2008-02-15 10:22:11 UTC (rev 489)
@@ -59,7 +59,7 @@
             ftype = "symlink"
             -- !!! FIXME: linkdest?
         elseif MojoSetup.platform.isdir(fullpath) then
-            ftype = "directory"
+            ftype = "dir"
         else  -- !!! FIXME: other types?
             ftype = "file"
             sums = MojoSetup.checksum(fullpath)
@@ -774,6 +774,9 @@
         retval = retval .. '\t\t<option name="' .. desc .. '">\n'
         for i,item in ipairs(items) do
             local type = item.type
+            if type == "dir" then
+                type = "directory"  -- loki_setup expects this string.
+            end
 
             -- !!! FIXME: files from archives aren't filling item.mode in
             -- !!! FIXME:  because it figures out the perms from the archive's




More information about the mojosetup-commits mailing list