diff options
author | dancer <dancer> | 2002-09-06 03:48:21 +0000 |
---|---|---|
committer | dancer <dancer> | 2002-09-06 03:48:21 +0000 |
commit | 225851674c4a10b07e82ef718ecaee2dd57d1ec7 (patch) | |
tree | b6180f19b58a4f30782b85d19ba71881284e9e74 /pbuilder-buildpackage | |
parent | 6b71b46c1d2bba352ab86d70b97abad2ba849ce4 (diff) | |
download | pbuilder-225851674c4a10b07e82ef718ecaee2dd57d1ec7.tar pbuilder-225851674c4a10b07e82ef718ecaee2dd57d1ec7.tar.gz |
+2002-09-06 Junichi Uekawa <dancer@debian.org>
+
+ * 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.
Diffstat (limited to 'pbuilder-buildpackage')
-rwxr-xr-x | pbuilder-buildpackage | 7 |
1 files changed, 4 insertions, 3 deletions
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 + |