aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-updatebuildenv
diff options
context:
space:
mode:
authordancer <dancer>2002-01-27 12:27:03 +0000
committerdancer <dancer>2002-01-27 12:27:03 +0000
commit076f814f3d8216a1a7f63dbf7c8e0522d05965ad (patch)
tree410f7970803ebf245ebb3711419ff325758b22e2 /pbuilder-updatebuildenv
parent2947553d0cf463a35e29313b3397a7d4119803bb (diff)
downloadpbuilder-076f814f3d8216a1a7f63dbf7c8e0522d05965ad.tar
pbuilder-076f814f3d8216a1a7f63dbf7c8e0522d05965ad.tar.gz
modified the cleaning process to the one using trap, for create, update, and login methods.
build is not modified (yet)
Diffstat (limited to 'pbuilder-updatebuildenv')
-rwxr-xr-xpbuilder-updatebuildenv7
1 files changed, 1 insertions, 6 deletions
diff --git a/pbuilder-updatebuildenv b/pbuilder-updatebuildenv
index cff78b6..2fed04e 100755
--- a/pbuilder-updatebuildenv
+++ b/pbuilder-updatebuildenv
@@ -5,24 +5,19 @@ set -e
. /usr/lib/pbuilder/pbuilder-checkparams
. /usr/lib/pbuilder/pbuilder-runhooks
-function abortprocess () {
-# function to do the aborting process in pbuilder-updatebuildenv
- umountproc
- cleanbuildplace
-}
CHROOTEXEC="chroot $BUILDPLACE "
test -n "$DISTRIBUTION" && echo "Upgrading for distribution $DISTRIBUTION"
extractbuildplace
+trap umountproc_cleanbuildplace exit
if [ -n "$HOOKDIR" ]; then
loadhooks
fi
echo "Refreshing the base.tgz "
echo " -> upgrading packages"
-trap abortprocess exit
$CHROOTEXEC /usr/bin/apt-get update
$CHROOTEXEC /usr/bin/dpkg --purge lilo
$CHROOTEXEC /usr/bin/apt-get -y dist-upgrade