From: Yanrui Li <liyanrui.m2@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Updating bug
Date: Tue, 28 Apr 2009 19:22:01 +0800 [thread overview]
Message-ID: <c3f901470904280422w415765bek73128e9366d64ff1@mail.gmail.com> (raw)
In-Reply-To: <c3f901470904280126w4743d097r6225f73e080f7a7c@mail.gmail.com>
2009/4/28 Yanrui Li <liyanrui.m2@gmail.com>:
> 2009/4/28 Yanrui Li <liyanrui.m2@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
--
Best wishes,
Li Yanrui
* Gentoo Linux (~x86)
* ConTeXt Minimals Beta (2009.04.28 08:46)
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2009-04-28 11:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-28 0:54 Yue Wang
2009-04-28 3:00 ` Yanrui Li
2009-04-28 8:26 ` Yanrui Li
2009-04-28 11:22 ` Yanrui Li [this message]
2009-04-28 11:27 ` Yanrui Li
2009-04-29 8:17 ` Hans Hagen
2009-04-29 8:08 ` Hans Hagen
2009-04-29 9:55 ` Mojca Miklavec
2009-04-29 10:04 ` luigi scarso
2009-04-29 10:10 ` Hans Hagen
2009-04-28 6:57 ` Hans Hagen
2009-04-29 5:46 ` Yue Wang
2009-05-03 12:40 ` Yue Wang
2009-05-03 16:50 ` Mojca Miklavec
2009-05-04 1:14 ` Yue Wang
2009-05-04 9:12 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c3f901470904280422w415765bek73128e9366d64ff1@mail.gmail.com \
--to=liyanrui.m2@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).