Akira25 / autoupdate

Draft of an autoupdater for Freifunk Berlin. Deprecated in favour of rewrite. https://github.com/freifunk-berlin/falter-packages/tree/master/packages/falter-berlin-autoupdate
2 stars 0 forks source link

Handling of renamed or dropped upstream packages #11

Open SvenRoederer opened 4 years ago

SvenRoederer commented 4 years ago

in https://github.com/freifunk-berlin/firmware/issues/755#issuecomment-572803876 you are referencing the "#get the list of packages and compare" code.

How do you handle packages that have been dropped or renamed ?

Akira25 commented 4 years ago

Currently the script does not deal with that. The script would try to install them at every reboot of the router.

Maybe that could be a nice solution: Every package, on which opkg fails, could be saved at a list at /root/autoupdate.error.

SvenRoederer commented 4 years ago

Just seen and probably helpful:

opkg status libuci-lua Status: install user installed

a package installed in the image will report:

Status: install ok installed

So filtering out the status might reduce the packages you have to take care of.