From 37dcf50f1e0d5d0bff5103fb1a48bd2d4d2bd8b7 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 11 Oct 2016 14:49:44 +0200 Subject: [PATCH] [mod] current_app_dict == new_app_dict so test is always false --- src/yunohost/app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index caa38e95b..15d295dc8 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -373,8 +373,7 @@ def app_upgrade(auth, app=[], url=None, file=None): elif new_app_dict is None or 'lastUpdate' not in new_app_dict or 'git' not in new_app_dict: logger.warning(m18n.n('custom_app_url_required', app=app_instance_name)) continue - elif (new_app_dict['lastUpdate'] > current_app_dict['lastUpdate']) \ - or ('update_time' not in current_app_dict['settings'] \ + elif ('update_time' not in current_app_dict['settings'] \ and (new_app_dict['lastUpdate'] > current_app_dict['settings']['install_time'])) \ or ('update_time' in current_app_dict['settings'] \ and (new_app_dict['lastUpdate'] > current_app_dict['settings']['update_time'])):