]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-build/build/build_*: check for librados2 package presence 354/head
authorDan Mick <dan.mick@redhat.com>
Tue, 12 Apr 2016 21:28:10 +0000 (14:28 -0700)
committerDan Mick <dan.mick@redhat.com>
Mon, 18 Apr 2016 23:47:08 +0000 (16:47 -0700)
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>
ceph-build/build/build_deb
ceph-build/build/build_rpm

index 12c6c75c62943801eb9192f569bd5b1bffe50a8a..49a7f0a420dc47c7b70e84e244f81290b1f1f602 100644 (file)
@@ -37,7 +37,7 @@ BPTAG=`get_bptag $DIST`
 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
@@ -57,6 +57,9 @@ gen_debian_version() {
 
 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
index 57ce015195df855f9d240b02d51b0f9e95495d56..9192e6a21b0f86cf8733212f17d479b2053dad8d 100644 (file)
@@ -61,11 +61,11 @@ vers=`cat ./dist/version`
 # 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)