From: Benjamin Drung Date: Wed, 23 Jul 2014 22:04:17 +0000 (+0200) Subject: .pbuilderrc: Fix dev repo test. X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=a9ca42147064743db61983449be358562e1e26ac;p=profitbricks%2Fjenkins-build-scripts.git .pbuilderrc: Fix dev repo test. --- diff --git a/.pbuilderrc b/.pbuilderrc index 2527278..3c29f09 100644 --- a/.pbuilderrc +++ b/.pbuilderrc @@ -91,10 +91,11 @@ else BASETGZ="/var/cache/pbuilder/$NAME-experimental-base.tgz" BASEPATH="/var/cache/pbuilder/$NAME-experimental-base.cow" OTHERMIRROR="$OTHERMIRROR deb http://repo.pb.local/pb-debian-dev squeeze-dev main contrib non-free |" - if wget -q --spider "http://repo.pb.local/pb-debian-dev/dists/${DIST}-$PB_SUITE/Release"; then + dev_dist=${DIST}-${PB_SUITE:4} + if wget -q --spider "http://repo.pb.local/pb-debian-dev/dists/${dev_dist}/Release"; then # Only add the ${DIST}-* repository if it already exist # It will not exist for the first package that targets this repository. - OTHERMIRROR="$OTHERMIRROR deb http://repo.pb.local/pb-debian-dev ${DIST}-$PB_SUITE main contrib non-free |" + OTHERMIRROR="$OTHERMIRROR deb http://repo.pb.local/pb-debian-dev ${dev_dist} main contrib non-free |" fi else BASETGZ="/var/cache/pbuilder/$NAME-$PB_SUITE-base.tgz"