diff options
Diffstat (limited to 'pbuilder-updatebuildenv')
-rwxr-xr-x | pbuilder-updatebuildenv | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/pbuilder-updatebuildenv b/pbuilder-updatebuildenv index 3a59098..7031931 100755 --- a/pbuilder-updatebuildenv +++ b/pbuilder-updatebuildenv @@ -9,7 +9,9 @@ test -n "$DISTRIBUTION" && echo "Upgrading for distribution $DISTRIBUTION" extractbuildplace -test -n "HOOKDIR" && loadhooks +if [ -n "$HOOKDIR" ]; then + loadhooks +fi echo "Refreshing the base.tgz " echo " -> upgrading packages" $CHROOTEXEC /usr/bin/apt-get update @@ -17,8 +19,12 @@ $CHROOTEXEC /usr/bin/dpkg --purge lilo $CHROOTEXEC /usr/bin/apt-get -y dist-upgrade $CHROOTEXEC /usr/bin/apt-get -y install build-essential dpkg-dev apt $EXTRAPACKAGES $CHROOTEXEC /usr/bin/apt-get clean -test -n "HOOKDIR" && executehooks -test -n "HOOKDIR" && unloadhooks "X" + +if [ -n "$HOOKDIR" ]; then + executehooks + unloadhooks "X" +fi + umountproc echo " -> creating base.tgz" (cd "$BUILDPLACE"; tar cfz "$BASETGZ" *) |