From bb87c41bc0e13ec717d6cca53107a63733311e91 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Fri, 13 May 2016 04:33:07 +0200 Subject: [PATCH] [mod] avoid to overwrite an import name --- src/yunohost/tools.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/yunohost/tools.py b/src/yunohost/tools.py index 7377c6c9d..79c42ff81 100644 --- a/src/yunohost/tools.py +++ b/src/yunohost/tools.py @@ -314,9 +314,8 @@ def tools_update(ignore_apps=False, ignore_packages=False): app_fetchlist() except MoulinetteError: pass - app_list = os.listdir(apps_setting_path) - for app_id in app_list: + for app_id in os.listdir(apps_setting_path): if '__' in app_id: original_app_id = app_id[:app_id.index('__')] else: