diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-04-09 03:20:31 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-04-09 03:20:31 +0200 |
commit | dabac51624069f8f491776cede881f9ce2b701b0 (patch) | |
tree | 8034765640a788a4e517bd01ecf00f9c05370a09 /bin | |
parent | a1cf3bb80e4dfe64b47b1691fb27d5ea243a51d8 (diff) | |
download | jenkins.debian.net-dabac51624069f8f491776cede881f9ce2b701b0.tar.xz |
use backports for the stable lintian tests
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/chroot-run.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bin/chroot-run.sh b/bin/chroot-run.sh index 03ac4203..32aeec6c 100755 --- a/bin/chroot-run.sh +++ b/bin/chroot-run.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Copyright 2012-2014 Holger Levsen <holger@layer-acht.org> # Copyright 2013 Antonio Terceiro <terceiro@debian.org> @@ -27,6 +27,12 @@ if [ $# -lt 2 ]; then fi DISTRO="$1" +if [ "$DISTRO" == "stable+backports" ] ; then + # FIXME: this works but is a bit too hackish for my liking + DISTRO = "stable" + BACKPORTS = "deb $MIRROR ${DISTRO}-backports main" + BACKPORTSSRC = "deb-src $MIRROR ${DISTRO}-backports main" +fi shift if [ ! -d "$CHROOT_BASE" ]; then @@ -59,6 +65,8 @@ echo -e '#!/bin/sh\nexit 101' > /usr/sbin/policy-rc.d chmod +x /usr/sbin/policy-rc.d echo 'Acquire::http::Proxy "$http_proxy";' > /etc/apt/apt.conf.d/80proxy echo "deb-src $MIRROR $DISTRO main" >> /etc/apt/sources.list +echo "${BACKPORTS}" >> /etc/apt/sources.list +echo "${BACKPORTSSRC}" >> /etc/apt/sources.list apt-get update EOF |