mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Put upgrade_only_if_version_changes in integration section
Co-Authored-By: Alexandre Aubin <alex.aubin@mailoo.org>
This commit is contained in:
parent
3578588860
commit
f416b94fb8
1 changed files with 1 additions and 1 deletions
|
@ -472,7 +472,7 @@ def app_upgrade(app=[], url=None, file=None, force=False):
|
||||||
app_new_version = manifest.get("version", "?")
|
app_new_version = manifest.get("version", "?")
|
||||||
app_current_version = app_dict.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
|
# do only the upgrade if there are a change
|
||||||
if app_current_version == app_new_version and not force:
|
if app_current_version == app_new_version and not force:
|
||||||
|
|
Loading…
Add table
Reference in a new issue