]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
fix the chacractl exists call in ceph-build-next and ceph-deploy 213/head
authorAndrew Schoen <aschoen@redhat.com>
Fri, 6 Nov 2015 22:47:36 +0000 (16:47 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Fri, 6 Nov 2015 23:02:42 +0000 (17:02 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-build-next/build/build_deb
ceph-build-next/build/build_rpm
ceph-deploy/build/build

index 72da8b24e04c1e52f2ddf63915df4e286c1c3a63..a4fd11122141922242de160a4ff84e6e7a39d257 100644 (file)
@@ -36,8 +36,7 @@ vers=`cat ./dist/version`
 distro=`python -c "exec 'import platform; print platform.linux_distribution()[0].lower()'"`
 chacra_endpoint="ceph/${chacra_ref}/${distro}/${DIST}/${ARCH}"
 
-# prevent early exit from a non-zero exit because we use `set -e`
-! chacractl exists binaries/${chacra_endpoint}; exists=$? || true
+chacractl exists binaries/${chacra_endpoint} ; exists=$?
 
 # if the binary already exists in chacra, do not rebuild
 if [ $exists -eq 0 ] && [ "$FORCE" = false ] ; then
index 19b3e8d8d35777917cd18734873df9c35d68dd74..5c7655e99ee5f5ea1af7e03082d5f19fc9f567be 100644 (file)
@@ -62,8 +62,7 @@ vers=`cat ./dist/version`
 [ "$TEST" = true ] && chacra_ref="test" || chacra_ref="$BRANCH"
 chacra_baseurl="ceph/${chacra_ref}/${DISTRO}/${RELEASE}"
 
-# prevent early exit from a non-zero exit because we use `set -e`
-! chacractl exists binaries/${chacra_baseurl}/${ARCH}; exists=$? || true
+chacractl exists binaries/${chacra_baseurl}/${ARCH} ; exists=$?
 
 # if the binary already exists in chacra, do not rebuild
 if [ $exists -eq 0 ] && [ "$FORCE" = false ]; then
index 0cea9deb6e69ce6dc8cf4b88b998f32ffe6405f1..571b165d988b321c3ab3f67af6449bcc97ba9bd6 100644 (file)
@@ -84,8 +84,7 @@ then
         [ "$TEST" = true ] && chacra_ref="test" || chacra_ref="$BRANCH"
         chacra_endpoint="ceph-deploy/${chacra_ref}/${DISTRO}/${DISTRO_VERSION}"
 
-        # prevent early exit from a non-zero exit because we use `set -e`
-        ! chacractl exists binaries/${chacra_endpoint}/${ARCH} ; exists=$? || true
+        chacractl exists binaries/${chacra_endpoint}/${ARCH} ; exists=$?
 
         # if the binary already exists in chacra, do not rebuild
         if [ $exists -eq 0 ] && [ "$FORCE" = false ] ; then
@@ -133,8 +132,7 @@ then
     [ "$TEST" = true ] && chacra_ref="test" || chacra_ref="$BRANCH"
     chacra_endpoint="ceph-deploy/${chacra_ref}/${DISTRO}/${DEB_BUILD}/${ARCH}"
 
-    # prevent early exit from a non-zero exit because we use `set -e`
-    ! chacractl exists binaries/${chacra_endpoint} ; exists=$? || true
+    chacractl exists binaries/${chacra_endpoint} ; exists=$?
 
     # if the binary already exists in chacra, do not rebuild
     if [ $exists -eq 0 ] && [ "$FORCE" = false ] ; then