diff options
author | Junichi Uekawa <dancer@dancer64.netfort.gr.jp> | 2007-05-27 02:54:59 +0900 |
---|---|---|
committer | Junichi Uekawa <dancer@dancer64.netfort.gr.jp> | 2007-05-27 02:54:59 +0900 |
commit | e9216547244c20f771ac81fcf74257e2df8371ef (patch) | |
tree | e4d77452a70676d0ac029334a78ff472eae7aab1 /pbuilder-buildpackage | |
parent | 2723d87530364226d6c9018d0d09b1827fcbe5ae (diff) | |
download | pbuilder-e9216547244c20f771ac81fcf74257e2df8371ef.tar pbuilder-e9216547244c20f771ac81fcf74257e2df8371ef.tar.gz |
trap SIGHUP as well as EXIT.
Diffstat (limited to 'pbuilder-buildpackage')
-rwxr-xr-x | pbuilder-buildpackage | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage index 0c9b8f1..4121c62 100755 --- a/pbuilder-buildpackage +++ b/pbuilder-buildpackage @@ -52,7 +52,7 @@ export HOME="/tmp/buildd" echobacktime extractbuildplace -trap umountproc_cleanbuildplace exit +trap umountproc_cleanbuildplace exit sighup loadhooks if [ ! -d "${BUILDRESULT}" ]; then @@ -89,10 +89,10 @@ recover_aptcache createbuilduser echo "Installing the build-deps" executehooks "D" -trap saveaptcache_umountproc_cleanbuildplace exit +trap saveaptcache_umountproc_cleanbuildplace exit sighup checkbuilddep "$PACKAGENAME" save_aptcache -trap umountproc_cleanbuildplace exit +trap umountproc_cleanbuildplace exit sighup echo "Copying source file" copydsc "$PACKAGENAME" "$BUILDPLACE/tmp/buildd" @@ -139,7 +139,7 @@ else fi if ! wait ${BUILD_PID}; then - trap umountproc_cleanbuildplace exit + trap umountproc_cleanbuildplace exit sighup eval "${KILL_WAIT_PID}" echo "pbuilder: Failed autobuilding of package" >&2 executehooks "C" @@ -149,10 +149,10 @@ else # build was successful fi -trap umountproc_cleanbuildplace exit +trap umountproc_cleanbuildplace exit sighup executehooks "B" save_aptcache -trap cleanbuildplace exit +trap cleanbuildplace exit sighup umountproc |