Put upgrade_only_if_version_changes in integration section

Co-Authored-By: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
Josue-T 2020-04-15 11:54:55 +02:00 committed by GitHub
parent 3578588860
commit f416b94fb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -472,7 +472,7 @@ def app_upgrade(app=[], url=None, file=None, force=False):
app_new_version = manifest.get("version", "?")
app_current_version = app_dict.get("version", "?")
if manifest.get("upgrade_only_if_version_changes", None) is True:
if manifest.get('integration', {}).get("upgrade_only_if_version_changes", None) is True:
# do only the upgrade if there are a change
if app_current_version == app_new_version and not force: