From 18651eedb6cc79c55aeaf3c86d57d93feeb7f58e Mon Sep 17 00:00:00 2001 From: dancer Date: Sun, 24 Feb 2002 07:57:06 +0000 Subject: added hooks support for pbuilder build target. --- pbuilder-updatebuildenv | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'pbuilder-updatebuildenv') 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" -- cgit v1.2.3