From 225851674c4a10b07e82ef718ecaee2dd57d1ec7 Mon Sep 17 00:00:00 2001 From: dancer Date: Fri, 6 Sep 2002 03:48:21 +0000 Subject: +2002-09-06 Junichi Uekawa + + * pbuider-loadconfig: create from checkparams. a module to load config files only. + + * debuild-pbuilder: add debuild wrapper script. + + * debuild-pbuilder.1: add manpage + + * pbuilder-buildpackage (BUILD_PID): use "trap" a bit, so that error checking can be done at all. --- pbuilder-buildpackage | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pbuilder-buildpackage') diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage index af2c2c2..845723e 100755 --- a/pbuilder-buildpackage +++ b/pbuilder-buildpackage @@ -142,17 +142,19 @@ else fi if ! wait ${BUILD_PID}; then + trap umountproc_cleanbuildplace exit eval ${KILL_WAIT_PID} echo "pbuilder: Failed autobuilding of package" >&2 executehooks "C" - umountproc_cleanbuildplace exit 1; else eval ${KILL_WAIT_PID} # build was successful fi +trap umountproc_cleanbuildplace exit executehooks "B" +trap cleanbuildplace exit umountproc if [ -n "$BUILDRESULT" ]; then @@ -164,6 +166,5 @@ if [ -n "$BUILDRESULT" ]; then fi fi -cleanbuildplace - echobacktime + -- cgit v1.2.3