service.libreelec.settings icon indicating copy to clipboard operation
service.libreelec.settings copied to clipboard

updates.py: use update-system script if available

Open antonlacon opened this issue 1 year ago • 2 comments

This changes the automatic check for updates to use /usr/bin/update-system if it's present. If not, then it falls back to asking the server for update information (current practice). update-system's output to include the checksum of the file intended to be downloaded. The addon doesn't do anything with it yet.

The other minor bits are some cleanups inside the function.

Needs https://github.com/LibreELEC/LibreELEC.tv/pull/7540 to see new behaviour.

Replaces #276.

antonlacon avatar May 19 '23 08:05 antonlacon

I would rather not call an external script. It should be integrated as a python import instead. Then if you want the cli script you can interface with that also.

lrusak avatar May 24 '23 15:05 lrusak

This is based on #301, #303, and ~#307~. The relevant commits are 93d4ef1 and 747036a. Draft until other PRs merged.

antonlacon avatar Oct 03 '23 21:10 antonlacon