From 611d7e7445459d5cb08d03ea7f0e1bdddc1a2e7b Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Mon, 14 Apr 2014 10:01:29 +0200 Subject: [PATCH] .pbuilderrc: Do not add the feature branch repo if it does not exists yet. --- .pbuilderrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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" -- 2.39.5