]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
prevent an early exit from a non-zero exit status 195/head
authorAlfredo Deza <adeza@redhat.com>
Tue, 3 Nov 2015 15:53:42 +0000 (10:53 -0500)
committerAlfredo Deza <adeza@redhat.com>
Tue, 3 Nov 2015 15:53:42 +0000 (10:53 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-build-next/build/build_deb
ceph-build-next/build/build_rpm

index a3b538c5dbc0117aecdd8e7acb7f336c9390d9b1..295baf36db629ab05772b565173c8750d595bf2f 100644 (file)
@@ -36,7 +36,8 @@ vers=`cat ./dist/version`
 distro=`python -c "exec 'import platform; print platform.linux_distribution()[0].lower()'"`
 chacra_endpoint="ceph/${chacra_ref}/${distro}/${DIST}/${ARCH}"
 
-chacractl exists binaries/${chacra_endpoint}; exists=$? || true
+# prevent early exit from a non-zero exit because we use `set -e`
+! chacractl exists binaries/${chacra_endpoint}; exists=$? || true
 
 # if the binary already exists in chacra, do not rebuild
 if [ $exists -eq 0 ] && [ "$FORCE" = false ] ; then
index e5384012b7bbe1dbfe906ed91b5f287c283f9c0a..3b3096b38e0bf8b87ec5b17dc89a62e7b1c28ea5 100644 (file)
@@ -62,7 +62,8 @@ vers=`cat ./dist/version`
 [ "$TEST" = true ] && chacra_ref="test" || chacra_ref="$BRANCH"
 chacra_baseurl="ceph/${chacra_ref}/${DISTRO}/${RELEASE}"
 
-chacractl exists binaries/${chacra_baseurl}/${ARCH}; exists=$? || true
+# prevent early exit from a non-zero exit because we use `set -e`
+! chacractl exists binaries/${chacra_baseurl}/${ARCH}; exists=$? || true
 
 # if the binary already exists in chacra, do not rebuild
 if [ $exists -eq 0 ] && [ "$FORCE" = false ]; then