From 07e4e15366589a733b2a6d904749ef3ccf2c71f0 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Tue, 11 Oct 2016 14:53:17 +0200 Subject: [PATCH] [mod] rename variable --- src/yunohost/app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index 4e69d81d7..68e1596e1 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -363,18 +363,18 @@ def app_upgrade(auth, app=[], url=None, file=None): if app_instance_name in upgraded_apps: continue - new_app_dict = app_info(app_instance_name, raw=True) + app_dict = app_info(app_instance_name, raw=True) - locale_update_time = new_app_dict['settings'].get('update_time', new_app_dict['settings']['install_time']) + locale_update_time = app_dict['settings'].get('update_time', app_dict['settings']['install_time']) if file: manifest, extracted_app_folder = _extract_app_from_file(file) elif url: manifest, extracted_app_folder = _fetch_app_from_git(url) - elif new_app_dict is None or 'lastUpdate' not in new_app_dict or 'git' not in new_app_dict: + elif app_dict is None or 'lastUpdate' not in app_dict or 'git' not in app_dict: logger.warning(m18n.n('custom_app_url_required', app=app_instance_name)) continue - elif new_app_dict['lastUpdate'] > locale_update_time: + elif app_dict['lastUpdate'] > locale_update_time: manifest, extracted_app_folder = _fetch_app_from_git(app_instance_name) else: continue