]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
.pbuilderrc: Fix dev repo test.
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Wed, 23 Jul 2014 22:04:17 +0000 (00:04 +0200)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Wed, 23 Jul 2014 22:04:17 +0000 (00:04 +0200)
.pbuilderrc

index 25272786961a605a08f7cd3dd3f125e782f5cc11..3c29f0955e624f9ec0cb324ec6b54b3d034d0020 100644 (file)
@@ -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"