shutils: return proper error in {do,pre,post}_* stage funcs and use msg_error.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20091012220713-k3j00b7x3jk5s3we
This commit is contained in:
Juan RP
2009-10-13 00:07:13 +02:00
parent cf7b3caebe
commit 9296d25811
4 changed files with 16 additions and 18 deletions

View File

@@ -62,7 +62,7 @@ configure_src_phase()
fi
# Run pre_configure func.
run_func pre_configure
run_func pre_configure || msg_error "pre_configure stage failed!"
# Export configure_env vars.
for f in ${configure_env}; do
@@ -124,7 +124,7 @@ configure_src_phase()
fi
# Run post_configure func.
run_func post_configure
run_func post_configure || msg_error "post_configure stage failed!"
# unset configure_env vars.
for f in ${configure_env}; do