mpt crashes when you try to use it to update packages.
skyem123 opened this issue · 7 comments
When I run mpt -Syu
(or anything with mpt -Sy
!) it crashes with
/usr/bin/mpt.lua:338: bad argument #2 (string expected, got boolean)
I haven't dug deeper, but it's worth noting that installing and uninstalling programs seems to work.
You're likely using an outdated MPT version which was broken by some OPPM package.json
update by
cd /tmp
wget http://mpt.magik6k.net/api/file/mpt/usr/bin/mpt.lua
./mpt.lua -Sy
In Plan9k you may need to run /tmp/mpt.lua
after cd-ing to /
Well... when run the commands you suggested on different systems (with OPPM without MPT, without OPPM without MPT, with OPPM, with MPT), MPT crashes with
/tmp/mpt.lua:391: bad argument #3 (string expected, got boolean)
Which seems similar to the errors that I get when using the version I tried before, but with different arguments and line numbers. 😛
Can you run mpt -Syuv
to see on which oppm repo it crashes?
Well... this is funny. It's the Plan9k repo!
[ OC ] Get https://raw.githubysercontent.com/OpenPrograms/Plan9k/master/programs.cfg
/usr/bin/mpt.lua:391: bad argument #3 (string expected, got boolean)
That's odd, I cannot repro it.. if you have an idea I'll fix it.
Strange... I'm using Lua 5.2 by the way on OpenOS. Maybe that's it?
I have the same issue