diff options
author | dancer <dancer> | 2002-01-22 06:58:50 +0000 |
---|---|---|
committer | dancer <dancer> | 2002-01-22 06:58:50 +0000 |
commit | 969fc109ee2db79c63309c2501b60b16eb7fca07 (patch) | |
tree | c772c4f99fbbd685e1683083205f48279f8aeb32 /pbuilder-updatebuildenv | |
parent | 2bebced76991705641e4fcdce9d4c400c6c0a158 (diff) | |
download | pbuilder-969fc109ee2db79c63309c2501b60b16eb7fca07.tar pbuilder-969fc109ee2db79c63309c2501b60b16eb7fca07.tar.gz |
updated/changed.
Diffstat (limited to 'pbuilder-updatebuildenv')
-rwxr-xr-x | pbuilder-updatebuildenv | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/pbuilder-updatebuildenv b/pbuilder-updatebuildenv index d773346..d53510b 100755 --- a/pbuilder-updatebuildenv +++ b/pbuilder-updatebuildenv @@ -5,6 +5,12 @@ set -e . /usr/lib/pbuilder/pbuilder-checkparams . /usr/lib/pbuilder/pbuilder-runhooks +function abortprocess () { +# function to do the aborting process in pbuilder-updatebuildenv + umountproc + cleanbuildplace +} + CHROOTEXEC="chroot $BUILDPLACE " test -n "$DISTRIBUTION" && echo "Upgrading for distribution $DISTRIBUTION" @@ -16,11 +22,11 @@ if [ -n "$HOOKDIR" ]; then fi echo "Refreshing the base.tgz " echo " -> upgrading packages" -$CHROOTEXEC /usr/bin/apt-get update -$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 +$CHROOTEXEC /usr/bin/apt-get update || abortprocess +$CHROOTEXEC /usr/bin/dpkg --purge lilo || abortprocess +$CHROOTEXEC /usr/bin/apt-get -y dist-upgrade || abortprocess +$CHROOTEXEC /usr/bin/apt-get -y install build-essential dpkg-dev apt $EXTRAPACKAGES || abortprocess +$CHROOTEXEC /usr/bin/apt-get clean || abortprocess if [ -n "$HOOKDIR" ]; then executehooks "X" |