From 0219d3ea80b263e16782fc1e87dfb87dab944060 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 6 Sep 2017 17:26:44 +0200 Subject: chroot-run: install backports as needed Signed-off-by: Holger Levsen --- bin/chroot-run.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/chroot-run.sh b/bin/chroot-run.sh index 5b837907..1e9acb1a 100755 --- a/bin/chroot-run.sh +++ b/bin/chroot-run.sh @@ -171,7 +171,12 @@ fi if [ -f debian/control ] ; then cat debian/control # install build-depends - mk-build-deps -ir + if [ -z "$BACKPORTS" ] ; then + mk-build-deps -ir + else + # use default mk-build-deps tool but configure it to use backports + mk-build-deps -ir -t "apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -t $DISTRO-backports" + fi fi EOF fi -- cgit v1.2.3-70-g09d2