then
OTHERMIRROR="$OTHERMIRROR deb http://alexandria.pb.local/pb-$DIST pre-staging main contrib non-free |"
fi
- if echo ${PB_SUITE} | grep -qE "^experimental-.*"
+ if echo ${PB_SUITE} | grep -qE "^wheezy-dev-.*"
then
+ BASETGZ="/var/cache/pbuilder/$NAME-experimental-wheezy-base.tgz"
+ BASEPATH="/var/cache/pbuilder/$NAME-experimental-wheezy-base.cow"
OTHERMIRROR="$OTHERMIRROR deb http://alexandria.pb.local/pb-$DIST pre-staging main contrib non-free |"
- OTHERMIRROR="$OTHERMIRROR deb http://alexandria.pb.local/pb-$DIST $PB_SUITE main contrib non-free |"
+ if wget -q --spider "http://alexandria.pb.local/pb-$DIST/dists/$PB_SUITE/Release"; then
+ # Only add the wheezy-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/pb-$DIST $PB_SUITE main contrib non-free |"
+ fi
fi
else
OTHERMIRROR="$OTHERMIRROR deb http://alexandria.pb.local/pb-squeeze production main contrib non-free |"
))
exit_error()
- new_dist = 'dev-{0}'.format(local_branch.replace("/", "-"))
+ if curr_dist == "wheezy":
+ new_dist = "wheezy-dev-{0}".format(local_branch.replace("/", "-"))
+ pb_suite = new_dist
+ else:
+ new_dist = 'dev-{0}'.format(local_branch.replace("/", "-"))
+ pb_suite = 'experimental-{dist}'.format(dist=curr_dist)
new_version = '{version}~experimental{date}+{build}+{commit}{suffix}'.format(
version=curr_version,
date=daily_date,
commit=curr_commit_id[0:7],
suffix=options.version_suffix,
)
- pb_suite = 'experimental-{dist}'.format(dist=curr_dist)
reprepro_base = '/srv/dev-{dist}'.format(dist=curr_dist)
else: