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"