diff options
author | dancer <dancer> | 2002-10-29 05:40:58 +0000 |
---|---|---|
committer | dancer <dancer> | 2002-10-29 05:40:58 +0000 |
commit | 00b1f9f7e4faa43d687fe2083f044dbafad18dea (patch) | |
tree | c69f39b0a2f8f1c4d0e0e881bac901efb929fee6 /pbuilder-buildpackage | |
parent | 78b06e69368987a65f00ab0d7c68e279a36a0946 (diff) | |
download | pbuilder-00b1f9f7e4faa43d687fe2083f044dbafad18dea.tar pbuilder-00b1f9f7e4faa43d687fe2083f044dbafad18dea.tar.gz |
+
+ * pbuilder-buildpackage: Changed to work with trap instead of other
+ kludgy alternatives.
+
+ * pbuilder-buildpackage-funcs: fixed to use trap for buildpackage hooks.
+
Diffstat (limited to 'pbuilder-buildpackage')
-rwxr-xr-x | pbuilder-buildpackage | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage index 877c71b..bb998f0 100755 --- a/pbuilder-buildpackage +++ b/pbuilder-buildpackage @@ -47,6 +47,7 @@ fi showbuildbanner '$Id' echobacktime extractbuildplace +trap umountproc_cleanbuildplace exit loadhooks createbuilduser @@ -57,14 +58,15 @@ executehooks "D" echo Extracting source if ! $CHROOTEXEC /bin/bash -c "( cd tmp/buildd; chown $BUILDUSERNAME:$BUILDUSERNAME ../buildd *; $SUTOUSER /usr/bin/dpkg-source -x $(basename $PACKAGENAME) )"; then echo "pbuilder: Failed extracting the source" >&2 - umountproc_cleanbuildplace exit 1; fi recover_aptcache echo "Installing the build-deps" +trap saveaptcache_umountproc_cleanbuildplace exit checkbuilddep save_aptcache +trap umountproc_cleanbuildplace exit echo " -> Building the package" export PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin" |