@wsamael said in need help to update retropie package script:

@sleve_mcdichael
after the prompt nothing happens as if I had quit retropie.

That's how it's meant to work. The way you're doing here, retropie_packages.sh [package] [function] is used to call an individual specified function (example, the updatescript function of the setup package), and then exit.

It's not supposed to quit retropie setup.

If you want to go back to the menu after, you can run retropie_setup.sh after the updatescript function:

retropie_packages.sh setup updatescript retropie_setup.sh

This is equivalent to doing:

retropie_packages.sh setup updatescript retropie_packages.sh setup gui

...

ok it's up to date but if I launch through the menu it still checks, there, it doesn't do anything

I'm not sure what you mean, here. What does it check?

When you do it through the menu, after updatescript it does runs another function post_update which in turn runs an _update_hooks function, on every package that has one. Maybe this is what you mean that it "checks"?

...I am not sure, but I think you can usually skip this step, since I think this is for doing a sort of "fixup" when, for example bringing RetroPie up to date from a very old version like 3.x updating to 4.x.

If you want to run it anyway:

retropie_packages.sh setup post_update

post_update also has a special "return function" that it can run another function after exit -- if that "return function" is gui_setup, then it goes right to the main menu. So instead of three commands for updatescript, post_update, and gui, you can do it in only two with:

retropie_packages.sh setup updatescript retropie_packages.sh setup post_update gui_setup

(This is what actually happens, when you choose it in the menu.)

...does any of this help?