aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-updatebuildenv
diff options
context:
space:
mode:
Diffstat (limited to 'pbuilder-updatebuildenv')
-rwxr-xr-xpbuilder-updatebuildenv11
1 files changed, 4 insertions, 7 deletions
diff --git a/pbuilder-updatebuildenv b/pbuilder-updatebuildenv
index c081b5e..b020254 100755
--- a/pbuilder-updatebuildenv
+++ b/pbuilder-updatebuildenv
@@ -29,9 +29,7 @@ test -n "$DISTRIBUTION" && echo "Upgrading for distribution $DISTRIBUTION"
extractbuildplace
trap umountproc_cleanbuildplace exit
-if [ -n "$HOOKDIR" ]; then
- loadhooks
-fi
+loadhooks
echo "Refreshing the base.tgz "
echo " -> upgrading packages"
$CHROOTEXEC /usr/bin/apt-get update
@@ -44,10 +42,9 @@ $CHROOTEXEC /usr/bin/apt-get -y install build-essential dpkg-dev apt $EXTRAPACKA
save_aptcache
$CHROOTEXEC /usr/bin/apt-get clean || true
-if [ -n "$HOOKDIR" ]; then
- executehooks "X"
- unloadhooks
-fi
+executehooks "X"
+unloadhooks
+
umountproc
trap cleanbuildplace exit
echo " -> creating base.tgz"