diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-12-21 14:05:48 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-12-21 14:05:48 +0100 |
commit | 8f0799137470c67dc60fcab90a6e30b18b912010 (patch) | |
tree | e506d254cea87fdb3c1ac178a2a67d155280ebac /bin/chroot-installation.sh | |
parent | 09ab0f3da64c77cab44f7e46ae17e7afa924ace7 (diff) | |
download | jenkins.debian.net-8f0799137470c67dc60fcab90a6e30b18b912010.tar.xz |
chroot-installation: add new _aptdpkg_first upgrade jobs which upgrade apt+dpkg before the rest. only for some tasks and only for upgrades from jessie+sid
Diffstat (limited to 'bin/chroot-installation.sh')
-rwxr-xr-x | bin/chroot-installation.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/chroot-installation.sh b/bin/chroot-installation.sh index c82f25c9..85e77461 100755 --- a/bin/chroot-installation.sh +++ b/bin/chroot-installation.sh @@ -98,11 +98,18 @@ echo "set +x" >> $CTMPFILE } prepare_upgrade2() { + # support _aptdpkg_first type upgrade jobs... + if [ "${JOB_NAME: -14}" = "_aptdpkg_first" ] ; then + APTDPKGFIRST="apt-get install -y dpkg apt" + else + APTDPKGFIRST="" + fi cat >> $CTMPFILE <<-EOF echo "deb $MIRROR $1 main" >> /etc/apt/sources.list $SCRIPT_HEADER set -x apt-get update +$APTDPKGFIRST apt-get -y upgrade apt-get clean apt-get -yf dist-upgrade |