From 7fbaa9928c327998c452c9500f8ae14c1ddfbd39 Mon Sep 17 00:00:00 2001 From: Junichi Uekawa Date: Sun, 27 May 2007 13:29:36 +0900 Subject: trap sighup as well as exit: create/update --- pbuilder-createbuildenv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pbuilder-createbuildenv') diff --git a/pbuilder-createbuildenv b/pbuilder-createbuildenv index e2cb2d6..313d446 100755 --- a/pbuilder-createbuildenv +++ b/pbuilder-createbuildenv @@ -81,7 +81,7 @@ executehooks "G" echo "Refreshing the base.tgz " echo " -> upgrading packages" mountproc -$TRAP umountproc_cleanbuildplace exit +$TRAP umountproc_cleanbuildplace exit sighup $CHROOTEXEC /usr/bin/apt-get update if [ -n "$REMOVEPACKAGES" ]; then $CHROOTEXEC /usr/bin/dpkg --purge $REMOVEPACKAGES @@ -96,7 +96,7 @@ unloadhooks umountproc $CHROOTEXEC /usr/bin/apt-get clean || true -$TRAP cleanbuildplace exit +$TRAP cleanbuildplace exit sighup # Internal_build_uml is set when --no-targz is set, this code is actually never called from pbuilder-user-mode-linux if [ ! "${INTERNAL_BUILD_UML}" = "yes" ]; then -- cgit v1.2.3