pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/LibreELEC/service.libreelec.settings/pull/298

50ce6c8e711.css" /> updates.py: use update-system script if available by antonlacon · Pull Request #298 · LibreELEC/service.libreelec.settings · GitHub
Skip to content

updates.py: use update-system script if available#298

Draft
antonlacon wants to merge 30 commits intoLibreELEC:masterfrom
antonlacon:auto-update
Draft

updates.py: use update-system script if available#298
antonlacon wants to merge 30 commits intoLibreELEC:masterfrom
antonlacon:auto-update

Conversation

@antonlacon
Copy link
Contributor

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 LibreELEC/LibreELEC.tv#7540 to see new behaviour.

Replaces #276.

@CvH CvH added the LE 12.0 label May 19, 2023
@lrusak
Copy link
Member

lrusak commented May 24, 2023

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.

@antonlacon antonlacon marked this pull request as draft May 25, 2023 21:59
@antonlacon
Copy link
Contributor Author

antonlacon commented Oct 3, 2023

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

@antonlacon antonlacon force-pushed the auto-update branch 2 times, most recently from 2df6360 to 1536689 Compare November 13, 2023 20:29
@antonlacon antonlacon force-pushed the auto-update branch 2 times, most recently from 5cd7a32 to c0bfe20 Compare August 31, 2025 06:09
@CvH CvH added LE 13.0 and removed LE 12.0 labels Aug 31, 2025
General review and cleanup of issues pointed out by pylint:

unexpected indent
could use f-strings
not inializing variables in init
redefining builtins
too broad exceptions
unneeded elses after returns
unneeded parantheses
== instead of is in evaluating True/False
unused function parameters
unused imports

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Addon will require Python >=3.9

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
The release channel entry serves as a releases.json selector.

stable: use releases.libreelec.tv/releases.json (stable builds)
testing: use test.libreelec.tv/releases.json (nightly builds)
custom: use a user designated URL for releases.json

The 'custom' setting replaces the Show Custom Channels toggle.

Adds a set_release_channel() function to refresh available build channels.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Import update_lib.py and use it for the system's automated update
check. If there is no such script, it uses the server side check.

Add an on/off toggle in the GUI with the default set to off.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy