xbps-src: make run_func() print a msg on success.

This commit is contained in:
Juan RP 2011-07-19 22:36:17 +02:00
parent 043dbcd786
commit 6bbfdac7c2
4 changed files with 2 additions and 6 deletions

View file

@ -63,7 +63,6 @@ install_src_phase()
# Run pre_install func.
if [ ! -f $XBPS_PRE_INSTALL_DONE ]; then
run_func pre_install
msg_normal "$pkgver: pre_install (destdir) phase done.\n"
touch -f $XBPS_PRE_INSTALL_DONE
fi
@ -84,7 +83,6 @@ install_src_phase()
# Run post_install func.
if [ ! -f $XBPS_POST_INSTALL_DONE ]; then
run_func post_install
msg_normal "$pkgver: post_install (destdir) phase done.\n"
touch -f $XBPS_POST_INSTALL_DONE
fi

View file

@ -65,7 +65,6 @@ build_src_phase()
# Run pre_build func.
if [ ! -f $XBPS_PRE_BUILD_DONE ]; then
run_func pre_build
msg_normal "$pkgver: pre_build phase done.\n"
touch -f $XBPS_PRE_BUILD_DONE
fi
@ -80,7 +79,6 @@ build_src_phase()
# Run post_build func.
if [ ! -f $XBPS_POST_BUILD_DONE ]; then
run_func post_build
msg_normal "$pkgver: post_build phase done.\n"
touch -f $XBPS_POST_BUILD_DONE
fi

View file

@ -108,6 +108,8 @@ run_func()
rm -f "$logpipe"
if [ $rval -ne 0 ]; then
msg_error "$pkgver: $func failed!\n"
else
msg_normal "$pkgver: $func phase done.\n"
fi
fi
return 255 # function not found.

View file

@ -79,7 +79,6 @@ configure_src_phase()
# Run pre_configure func.
if [ ! -f $XBPS_PRECONFIGURE_DONE ]; then
run_func pre_configure
msg_normal "$pkgver: pre_configure phase done.\n"
touch -f $XBPS_PRECONFIGURE_DONE
fi
@ -110,7 +109,6 @@ configure_src_phase()
# Run post_configure func.
if [ ! -f $XBPS_POSTCONFIGURE_DONE ]; then
run_func post_configure
msg_normal "$pkgver: post_configure phase done.\n"
touch -f $XBPS_POSTCONFIGURE_DONE
fi