From fb01deb990812309615cf13c9063fdd9ac2604b4 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 16 Jan 2018 19:08:19 +0100 Subject: [PATCH] Don't try to patch folders --- src/yunohost/app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index 39da58180..f07e34783 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -2197,5 +2197,10 @@ def _patch_php5(app_folder): files_to_patch.append("%s/manifest.json" % app_folder) for filename in files_to_patch: + + # Ignore non-regular files + if not os.path.isfile(filename): + continue + c = "sed -i -e 's@/etc/php5@/etc/php/7.0@g' -e 's@php5@php7.0@g' %s" % filename os.system(c)