2009/4/28 Yanrui Li <liyanrui...@gmail.com>: > 2009/4/28 Yanrui Li <liyanrui...@gmail.com>: >> 2009/4/28 Yanrui Li <liyanrui...@gmail.com>: >>> Linux x86: >>> >>> sent 221 bytes received 975 bytes 265.78 bytes/sec >>> ... ... >>> MTXrun | using script: ./bin/mtx-update.lua >>> >>> MTXrun | state: loaded >>> MTXrun | update: start >>> ./bin/mtx-update.lua:266: attempt to get length of global 'individual' >>> (a nil value) >>> >> >> Maybe it is related to the table of 'individual' in mtx-update.lua not >> being created. >> >> mtx-update.lua, line 266: >> >> individual[#individual+1] = { archive, destination } >> > > This is my patch for the bug. > > --- mtx-update.lua.old 2009-04-28 19:04:56.000000000 +0800 > +++ mtx-update.lua 2009-04-28 18:55:42.000000000 +0800 > @@ -172,12 +172,13 @@ > dir.mkdirs(texroot) > ok = lfs.attributes(texroot,"mode") == "directory" > end > + > if force then > dir.mkdirs(format("%s/%s", texroot, "texmf-cache")) > dir.mkdirs(format("%s/%s", texroot, "texmf-local")) > end > + > if ok or not force then > - local fetched, individual, osplatform = { }, { }, > os.currentplatform() > > -- takes a collection as argument and returns a list of folders > > >
Very sorry, the patch just I post is wrong. It should be: --- mtx-update.lua 2009-04-26 00:26:11.000000000 +0800 +++ mtx-update.lua.new 2009-04-28 19:24:48.000000000 +0800 @@ -172,13 +172,12 @@ dir.mkdirs(texroot) ok = lfs.attributes(texroot,"mode") == "directory" end - if force then dir.mkdirs(format("%s/%s", texroot, "texmf-cache")) dir.mkdirs(format("%s/%s", texroot, "texmf-local")) end - if ok or not force then + local fetched, individual, osplatform = { }, { }, os.currentplatform() -- takes a collection as argument and returns a list of folders -- Best wishes, Li Yanrui * Gentoo Linux (~x86) * ConTeXt Minimals Beta (2009.04.18 13:47) ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________