From: Benjamin Drung Date: Mon, 14 Apr 2014 08:01:29 +0000 (+0200) Subject: .pbuilderrc: Do not add the feature branch repo if it does not exists yet. X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=611d7e7445459d5cb08d03ea7f0e1bdddc1a2e7b;p=profitbricks%2Fjenkins-build-scripts.git .pbuilderrc: Do not add the feature branch repo if it does not exists yet. --- diff --git a/.pbuilderrc b/.pbuilderrc index d992ef8..4cb1228 100644 --- a/.pbuilderrc +++ b/.pbuilderrc @@ -98,7 +98,11 @@ else OTHERMIRROR="$OTHERMIRROR deb http://alexandria.pb.local/debian-mirror profitbricks-backports-proposed-updates main contrib non-free |" OTHERMIRROR="$OTHERMIRROR deb http://alexandria.pb.local/debian-mirror profitbricks-backports-pre-staging main contrib non-free |" OTHERMIRROR="$OTHERMIRROR deb http://alexandria.pb.local/debian-mirror profitbricks-backports-experimental main contrib non-free |" - OTHERMIRROR="$OTHERMIRROR deb http://alexandria.pb.local/dev-squeeze $PB_SUITE main contrib non-free |" + if wget -q --spider "http://alexandria.pb.local/dev-squeeze/dists/$PB_SUITE/Release"; then + # Only add the dev-* repository if it already exist + # It will not exist for the first package that targets this repository. + OTHERMIRROR="$OTHERMIRROR deb http://alexandria.pb.local/dev-squeeze $PB_SUITE main contrib non-free |" + fi else BASETGZ="/var/cache/pbuilder/$NAME-$PB_SUITE-base.tgz" BASEPATH="/var/cache/pbuilder/$NAME-$PB_SUITE-base.cow"