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
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue