1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/libreerp_ynh.git synced 2024-09-03 19:36:13 +02:00

[fix] No patches shouldn't warn

This commit is contained in:
ljf 2016-12-14 12:29:02 +01:00
parent 2cd6219769
commit 9a04d653e7

View file

@ -84,10 +84,12 @@ extract_sources() {
rm -f "$tarball" rm -f "$tarball"
# apply patches # apply patches
if [[ -d "${PKGDIR}/patches" ]]; then
(cd "$DESTDIR" \ (cd "$DESTDIR" \
&& for p in ${PKGDIR}/patches/*.patch; do \ && for p in ${PKGDIR}/patches/*.patch; do \
exec_as "$AS_USER" patch -p1 < $p; done) \ exec_as "$AS_USER" patch -p1 < $p; done) \
|| ynh_die "Unable to apply patches" || ynh_die "Unable to apply patches"
fi
} }
# Execute a command as another user # Execute a command as another user