Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not list non-repo add-ons as "unavailable" in info dialog #15099

Merged
merged 1 commit into from
Dec 28, 2018

Conversation

yol
Copy link
Member

@yol yol commented Dec 20, 2018

Current GUIDialogAddonInfo logic only displays a detailed entry in the
add-on dependency list if the add-on in question can be found in a
repository. Add-ons that are only available locally (pre-shipped with
Kodi or by distributor) such as script.module.pil in the default
installation are wrongly listed as "unavailable" even though they are
correctly found and enabled (if necessary) when installing the add-on.

In fact a locally available version is already looked up, but
completely disregarded if no repository version is found. This commit
fixes that situation by falling back to local add-on data if none
is found in the repositories.

Fixes #14697

Current GUIDialogAddonInfo logic only displays a detailed entry in the
add-on dependency list if the add-on in question can be found in a
repository. Add-ons that are only available locally (pre-shipped with
Kodi or by distributor) such as script.module.pil in the default
installation are wrongly listed as "unavailable" even though they are
correctly found and enabled (if necessary) when installing the add-on.

In fact a locally available version is already looked up, but
completely disregarded if no repository version is found. This commit
fixes that situation by falling back to local add-on data if none
is found in the repositories.

Fixes #14697
@yol yol requested a review from tamland December 20, 2018 14:39
@yol yol self-assigned this Dec 20, 2018
@yol yol added Type: Fix non-breaking change which fixes an issue Component: Add-ons v18 Leia labels Dec 20, 2018
@yol yol added this to the Leia 18.0-rc4 milestone Dec 20, 2018
@yol
Copy link
Member Author

yol commented Dec 20, 2018

@MilhouseVH please test

@MilhouseVH
Copy link
Contributor

@pkerling thanks, this is working great - tested on both LibreELEC and Ubuntu. Many thanks!

@yol
Copy link
Member Author

yol commented Dec 21, 2018

@MartijnKaijser If possible I'd like to get a very quick look from any core dev acquainted with add-ons (@notspiff you around?) but I'm not sure this will happen in the next few days. Merge when you think it's time.

@MartijnKaijser MartijnKaijser merged commit 1dd1b12 into master Dec 28, 2018
@Rechi Rechi deleted the addon-install-info branch December 28, 2018 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Add-ons Type: Fix non-breaking change which fixes an issue v18 Leia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bogus "not available" dependency message with addons using built-in dependencies
4 participants