[fix] No patches shouldn't warn
This commit is contained in:
parent
2cd6219769
commit
9a04d653e7
1 changed files with 6 additions and 4 deletions
|
@ -84,10 +84,12 @@ extract_sources() {
|
|||
rm -f "$tarball"
|
||||
|
||||
# apply patches
|
||||
if [[ -d "${PKGDIR}/patches" ]]; then
|
||||
(cd "$DESTDIR" \
|
||||
&& for p in ${PKGDIR}/patches/*.patch; do \
|
||||
exec_as "$AS_USER" patch -p1 < $p; done) \
|
||||
|| ynh_die "Unable to apply patches"
|
||||
fi
|
||||
}
|
||||
|
||||
# Execute a command as another user
|
||||
|
|
Loading…
Reference in a new issue