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

Add check for xbmc.python version #103

Merged
merged 1 commit into from Aug 12, 2018
Merged

Conversation

mzfr
Copy link
Contributor

@mzfr mzfr commented Aug 5, 2018

This will check for the version of xbmc.python in addon.xml file according to the kodi version

Rechi
Rechi previously requested changes Aug 5, 2018
for required_addon, required_version in deps.items():
if required_addon not in repo_addons:
if required_addon not in ignore:
report.add(Record(
PROBLEM, "Required addon %s not available in current repository." % required_addon))
elif required_addon == "xbmc.python":

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

else:
version = VERSION_ATTRB[required_addon][branch_name]
if not LooseVersion(version) == LooseVersion(required_version):
report.add(Record(WARNING, "You are using and older version xbmc.python"))

This comment was marked as spam.

@@ -32,6 +35,12 @@ def check_addon_dependencies(report: Report, repo_addons: dict, parsed_xml, bran
if required_addon not in ignore:
report.add(Record(
PROBLEM, "Required addon %s not available in current repository." % required_addon))
else:
version = VERSION_ATTRB[required_addon][branch_name]

This comment was marked as spam.

This comment was marked as spam.

else:
version = VERSION_ATTRB[required_addon][branch_name]
if not LooseVersion(version) == LooseVersion(required_version):
report.add(Record(WARNING, "For %s it is advised to set %s version to %s" %

This comment was marked as spam.

This comment was marked as spam.

@@ -29,9 +32,15 @@ def check_addon_dependencies(report: Report, repo_addons: dict, parsed_xml, bran

for required_addon, required_version in deps.items():
if required_addon not in repo_addons:
if required_addon not in ignore:
if required_addon not in ignore and required_addon in VERSION_ATTRB:

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@Rechi
Copy link
Member

Rechi commented Aug 9, 2018

new feature has to be added in the readme

@Rechi
Copy link
Member

Rechi commented Aug 12, 2018

Update README isn't a descriptive commit message.

@Rechi
Copy link
Member

Rechi commented Aug 12, 2018

First line of the commit message (which you see by git log --oneline or on github in the commit log) still hasn't changed.

As soon as you give it a usefull name it will be similar to ’Add check for xbmc.python version’ and you should ask yourself, why is this a seperate commit.

@Rechi Rechi dismissed their stale review August 12, 2018 15:49

resolved

@razzeee razzeee merged commit d58e9c1 into xbmc:master Aug 12, 2018
version = VERSION_ATTRB[required_addon][branch_name]
if LooseVersion(version) != LooseVersion(required_version):
report.add(Record(WARNING, "For %s it is advised to set %s version to %s" %
(branch_name, required_addon, required_version)))

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants