From 2adc80f8db5138e354fae509b24d837d170a67cf Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 11 Jun 2018 16:18:38 +0200 Subject: [PATCH] [fix] Microdecision : bug in get_file_diff following refactoring ... --- src/yunohost/service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yunohost/service.py b/src/yunohost/service.py index b56c7ad20..0ce8073fa 100644 --- a/src/yunohost/service.py +++ b/src/yunohost/service.py @@ -733,9 +733,9 @@ def _get_files_diff(orig_file, new_file, as_string=False, skip_header=True): else: orig_file = [] - if not os.path.exists(new_file): + if os.path.exists(new_file): with open(new_file, 'r') as new_file: - new_file.readlines() + new_file = new_file.readlines() else: new_file = []