mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Rely on YNH_APP_BASEDIR to check the sources/ dir
This commit is contained in:
parent
d98ec6ce35
commit
e27ac6ff2c
1 changed files with 4 additions and 4 deletions
|
@ -196,18 +196,18 @@ ynh_setup_source () {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Apply patches
|
# Apply patches
|
||||||
if (( $(find $YNH_CWD/../sources/patches/ -type f -name "${source_id}-*.patch" 2> /dev/null | wc --lines) > "0" ))
|
if (( $(find $YNH_APP_BASEDIR/sources/patches/ -type f -name "${source_id}-*.patch" 2> /dev/null | wc --lines) > "0" ))
|
||||||
then
|
then
|
||||||
(cd "$dest_dir"
|
(cd "$dest_dir"
|
||||||
for p in $YNH_CWD/../sources/patches/${source_id}-*.patch
|
for p in $YNH_APP_BASEDIR/sources/patches/${source_id}-*.patch
|
||||||
do
|
do
|
||||||
patch --strip=1 < $p
|
patch --strip=1 < $p
|
||||||
done) || ynh_die --message="Unable to apply patches"
|
done) || ynh_die --message="Unable to apply patches"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add supplementary files
|
# Add supplementary files
|
||||||
if test -e "$YNH_CWD/../sources/extra_files/${source_id}"; then
|
if test -e "$YNH_APP_BASEDIR/sources/extra_files/${source_id}"; then
|
||||||
cp --archive $YNH_CWD/../sources/extra_files/$source_id/. "$dest_dir"
|
cp --archive $YNH_APP_BASEDIR/sources/extra_files/$source_id/. "$dest_dir"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue