Assertion: if librados2 .deb of the right version etc. is present,
the build doesn't need to continue, because either the entire
build succeeded and published already, or none of it did.
Signed-off-by: Dan Mick <dan.mick@redhat.com>
vers=`cat ./dist/version`
distro=`python -c "exec 'import platform; print platform.linux_distribution()[0].lower()'"`
debian_version=${vers}-1
-chacra_endpoint="ceph/${chacra_ref}/${distro}/${DIST}/${ARCH}"
+
gen_debian_version() {
raw=$1
dist=$2
bpvers=`gen_debian_version $debian_version $DIST`
+# look for a specific package to tell if we can avoid the build
+chacra_endpoint="ceph/${chacra_ref}/${distro}/${DIST}/${ARCH}/librados2_${vers}-${bpvers}_${ARCH}.deb"
+
if [ "$THROWAWAY" = false ] ; then
# this exists in scripts/build_utils.sh
check_binary_existence $chacra_endpoint
# slap -rc to the ref if we are doing a release-candidate build
[ "$RC" = true ] && chacra_ref="$BRANCH-rc" || chacra_ref="$BRANCH"
[ "$TEST" = true ] && chacra_ref="test"
-chacra_baseurl="ceph/${chacra_ref}/${DISTRO}/${RELEASE}"
+chacra_baseurl="ceph/${chacra_ref}/${DISTRO}/${RELEASE}/${ARCH}/librados2-${vers}-0.${DIST}.${ARCH}.rpm"
if [ "$THROWAWAY" = false ] ; then
# this exists in scripts/build_utils.sh
- check_binary_existence $chacra_baseurl/$ARCH
+ check_binary_existence $chacra_baseurl
fi
HOST=$(hostname --short)