Exit if patch fails to apply (issue #429)

This commit is contained in:
Trammell Hudson 2018-07-17 06:22:52 -04:00
parent 584c07042e
commit 22b1241475
Failed to extract signature

View File

@ -212,14 +212,16 @@ define define_module =
git clone $($1_repo) "$(build)/$($1_base_dir)"
if [ -r patches/$1.patch ]; then \
( cd $(build)/$($1_base_dir) ; patch -p1 ) \
< patches/$1.patch; \
< patches/$1.patch \
|| exit 1 ; \
fi
if [ -d patches/$1 ] && \
[ -r patches/$1 ] ; then \
for patch in patches/$1/*.patch ; do \
echo "Applying patch file : $$$$patch " ; \
( cd $(build)/$($1_base_dir) ; patch -p1 ) \
< $$$$patch ; \
< $$$$patch \
|| exit 1 ; \
done ; \
fi
@touch "$$@"
@ -243,14 +245,16 @@ define define_module =
tar -xf "$(packages)/$($1_tar)" -C "$(build)"
if [ -r patches/$1-$($1_version).patch ]; then \
( cd $(build)/$($1_base_dir) ; patch -p1 ) \
< patches/$1-$($1_version).patch; \
< patches/$1-$($1_version).patch \
|| exit 1 ; \
fi
if [ -d patches/$1-$($1_version) ] && \
[ -r patches/$1-$($1_version) ] ; then \
for patch in patches/$1-$($1_version)/*.patch ; do \
echo "Applying patch file : $$$$patch " ; \
( cd $(build)/$($1_base_dir) ; patch -p1 ) \
< $$$$patch ; \
< $$$$patch \
|| exit 1 ; \
done ; \
fi
@touch "$$@"