From 7e2eeb1906fb58dc5732f42604628ad945603415 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 15 Apr 2014 01:27:36 +0200 Subject: chroot-run.sh: support backports in a less hackish way --- bin/chroot-run.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin/chroot-run.sh') diff --git a/bin/chroot-run.sh b/bin/chroot-run.sh index 7ca5122c..3f3793b1 100755 --- a/bin/chroot-run.sh +++ b/bin/chroot-run.sh @@ -22,18 +22,18 @@ if [ -z "$CHROOT_BASE" ]; then fi if [ $# -lt 2 ]; then - echo "usage: $0 DISTRO CMD [ARG1 ARG2 ...]" + echo "usage: $0 DISTRO [backports] CMD [ARG1 ARG2 ...]" exit 1 fi DISTRO="$1" -if [ "$DISTRO" == "wheezy+backports" ] ; then - # FIXME: this works but is a bit too hackish for my liking, ie it will break when jessie will be stable.. - DISTRO="wheezy" +shift + +if [ "$1" == "backports" ] ; then BACKPORTS="deb $MIRROR ${DISTRO}-backports main" BACKPORTSSRC="deb-src $MIRROR ${DISTRO}-backports main" + shift fi -shift if [ ! -d "$CHROOT_BASE" ]; then echo "Directory $CHROOT_BASE does not exist, aborting." -- cgit v1.2.3-54-g00ecf