updates.py: use update-system script if available#298
Draft
antonlacon wants to merge 30 commits intoLibreELEC:masterfrom
Draft
updates.py: use update-system script if available#298antonlacon wants to merge 30 commits intoLibreELEC:masterfrom
antonlacon wants to merge 30 commits intoLibreELEC:masterfrom
Conversation
Member
|
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. |
c6b863a to
747036a
Compare
Contributor
Author
2df6360 to
1536689
Compare
1536689 to
ecc4889
Compare
5cd7a32 to
c0bfe20
Compare
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>
c0bfe20 to
f0d9af7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This changes the automatic check for updates to use
/usr/bin/update-systemif 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.