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
Conversation
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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
491ab8a
to
112c4b1
Compare
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.
This comment was marked as spam.
Sorry, something went wrong.
112c4b1
to
304b240
Compare
@@ -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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
304b240
to
98b2954
Compare
@@ -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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
98b2954
to
54a1ffa
Compare
new feature has to be added in the readme |
54a1ffa
to
edf713b
Compare
|
edf713b
to
b488cdc
Compare
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. |
b488cdc
to
1382159
Compare
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.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This will check for the version of
xbmc.python
in addon.xml file according to the kodi version