Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mpt crashes when you try to use it to update packages. #6

Open
skyem123 opened this issue Mar 25, 2017 · 7 comments
Open

mpt crashes when you try to use it to update packages. #6

skyem123 opened this issue Mar 25, 2017 · 7 comments

Comments

@skyem123
Copy link

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.

@magik6k
Copy link
Contributor

magik6k commented Mar 26, 2017

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 /

@skyem123
Copy link
Author

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. 😛

@magik6k
Copy link
Contributor

magik6k commented Mar 26, 2017

Can you run mpt -Syuv to see on which oppm repo it crashes?

@skyem123
Copy link
Author

skyem123 commented Mar 27, 2017

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)

@magik6k
Copy link
Contributor

magik6k commented Apr 1, 2017

That's odd, I cannot repro it.. if you have an idea I'll fix it.

@skyem123
Copy link
Author

skyem123 commented Apr 1, 2017

Strange... I'm using Lua 5.2 by the way on OpenOS. Maybe that's it?

@jambonmcyeah
Copy link

I have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants