Apply patches to {custom,only}-install templates too.

--HG--
extra : convert_revision : 81eea0b86a2fe153db432ad13dd0fbd03f6f6fbf
This commit is contained in:
Juan RP 2008-12-15 01:19:47 +01:00
parent 9c6387d846
commit 944309d934
1 changed files with 8 additions and 7 deletions

View File

@ -35,6 +35,14 @@ configure_src_phase()
[ -z $pkg ] && [ -z $pkgname ] && return 1 [ -z $pkg ] && [ -z $pkgname ] && return 1
[ ! -d $wrksrc ] && msg_error "unexistent build directory [$wrksrc]."
# Apply patches if requested by template file
if [ ! -f $XBPS_APPLYPATCHES_DONE ]; then
. $XBPS_SHUTILSDIR/patch_funcs.sh
apply_tmpl_patches
fi
# #
# There's nothing we can do if we are a meta template or an # There's nothing we can do if we are a meta template or an
# {custom,only}_install template. # {custom,only}_install template.
@ -43,13 +51,6 @@ configure_src_phase()
"$build_style" = "only-install" -o \ "$build_style" = "only-install" -o \
"$build_style" = "custom-install" ] && return 0 "$build_style" = "custom-install" ] && return 0
[ ! -d $wrksrc ] && msg_error "unexistent build directory [$wrksrc]."
# Apply patches if requested by template file
if [ ! -f $XBPS_APPLYPATCHES_DONE ]; then
. $XBPS_SHUTILSDIR/patch_funcs.sh
apply_tmpl_patches
fi
# cross compilation vars. # cross compilation vars.
if [ -n "$cross_compiler" ]; then if [ -n "$cross_compiler" ]; then