aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-updatebuildenv
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-updatebuildenv')
-rwxr-xr-xpbuilder-updatebuildenv8
1 files changed, 4 insertions, 4 deletions
diff --git a/pbuilder-updatebuildenv b/pbuilder-updatebuildenv
index f079ce2..d6abe49 100755
--- a/pbuilder-updatebuildenv
+++ b/pbuilder-updatebuildenv
@@ -32,7 +32,7 @@ else
fi
extractbuildplace
-$TRAP umountproc_cleanbuildplace exit
+$TRAP umountproc_cleanbuildplace exit sighup
loadhooks
echo "Refreshing the base.tgz "
@@ -43,7 +43,7 @@ if [ -n "$REMOVEPACKAGES" ]; then
fi
recover_aptcache
-$TRAP saveaptcache_umountproc_cleanbuildplace exit
+$TRAP saveaptcache_umountproc_cleanbuildplace exit sighup
$CHROOTEXEC /usr/bin/apt-get -y --force-yes "${FORCE_CONFNEW[@]}" dist-upgrade
$CHROOTEXEC /usr/bin/apt-get -y --force-yes install build-essential dpkg-dev apt $EXTRAPACKAGES
save_aptcache
@@ -62,14 +62,14 @@ if [ "${AUTOCLEANAPTCACHE}" = "yes" -a -n "$APTCACHE" ]; then
done
fi
-$TRAP umountproc_cleanbuildplace exit
+$TRAP umountproc_cleanbuildplace exit sighup
executehooks "E"
unloadhooks
umountproc
$CHROOTEXEC /usr/bin/apt-get clean || true
-$TRAP cleanbuildplace exit
+$TRAP cleanbuildplace exit sighup
if [ ! "${INTERNAL_BUILD_UML}" = "yes" ]; then
create_basetgz
fi