diff --git a/data/helpers.d/utils b/data/helpers.d/utils index f5dd76e92..c216aa6d2 100644 --- a/data/helpers.d/utils +++ b/data/helpers.d/utils @@ -201,6 +201,7 @@ ynh_setup_source () { else unzip -quo $src_filename -d "$dest_dir" fi + ynh_secure_remove --file="$src_filename" else local strip="" if [ "$src_in_subdir" != "false" ] @@ -219,6 +220,7 @@ ynh_setup_source () { else ynh_die --message="Archive format unrecognized." fi + ynh_secure_remove --file="$src_filename" fi # Apply patches diff --git a/src/yunohost/app.py b/src/yunohost/app.py index 08e13e9f2..301d37398 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -3605,7 +3605,11 @@ def _patch_legacy_helpers(app_folder): if not os.path.isfile(filename): continue - content = read_file(filename) + try: + content = read_file(filename) + except MoulinetteError: + continue + replaced_stuff = False show_warning = False