xbps-src: improve run_func and always make a log in $wrksrc.

Also when or after the pkg is installed to destdir/stowned, and there was
any error, always remove the files that were installed into destdir.

With these changes there's no need to return any value in the do_foo()
functions because they are caught automatically. Also any function is now
logged into its own file to always log what happens.
This commit is contained in:
Juan RP 2010-12-18 22:38:21 +01:00
parent 4965921029
commit 08d47bc8b1
8 changed files with 158 additions and 151 deletions

View file

@ -26,10 +26,6 @@ perl_module_build()
cd $wrksrc && \
PERL_MM_USE_DEFAULT=1 perl Makefile.PL \
${make_build_args} INSTALLDIRS=vendor
if [ "$?" -ne 0 ]; then
echo "*** ERROR building perl module for $pkgname ***"
exit 1
fi
fi
for i in "$perl_configure_dirs"; do
@ -38,7 +34,6 @@ perl_module_build()
cd $wrksrc/$i && PERL_MM_USE_DEFAULT=1 \
perl Makefile.PL ${make_build_args} \
INSTALLDIRS=vendor
[ "$?" -ne 0 ] && exit 1
else
echo -n "*** ERROR: couldn't find $perlmkf"
echo ", aborting ***"