mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Merge pull request #1190 from YunoHost/remove-src_filename
Remove src filename
This commit is contained in:
commit
27c4b33065
2 changed files with 7 additions and 1 deletions
|
@ -201,6 +201,7 @@ ynh_setup_source () {
|
||||||
else
|
else
|
||||||
unzip -quo $src_filename -d "$dest_dir"
|
unzip -quo $src_filename -d "$dest_dir"
|
||||||
fi
|
fi
|
||||||
|
ynh_secure_remove --file="$src_filename"
|
||||||
else
|
else
|
||||||
local strip=""
|
local strip=""
|
||||||
if [ "$src_in_subdir" != "false" ]
|
if [ "$src_in_subdir" != "false" ]
|
||||||
|
@ -219,6 +220,7 @@ ynh_setup_source () {
|
||||||
else
|
else
|
||||||
ynh_die --message="Archive format unrecognized."
|
ynh_die --message="Archive format unrecognized."
|
||||||
fi
|
fi
|
||||||
|
ynh_secure_remove --file="$src_filename"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Apply patches
|
# Apply patches
|
||||||
|
|
|
@ -3605,7 +3605,11 @@ def _patch_legacy_helpers(app_folder):
|
||||||
if not os.path.isfile(filename):
|
if not os.path.isfile(filename):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
try:
|
||||||
content = read_file(filename)
|
content = read_file(filename)
|
||||||
|
except MoulinetteError:
|
||||||
|
continue
|
||||||
|
|
||||||
replaced_stuff = False
|
replaced_stuff = False
|
||||||
show_warning = False
|
show_warning = False
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue