]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-deploy: use the check_binary_existence method from build_utils.sh 232/head
authorAndrew Schoen <aschoen@redhat.com>
Tue, 17 Nov 2015 17:17:05 +0000 (11:17 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 17 Nov 2015 17:17:05 +0000 (11:17 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-deploy/build/build

index a2e8880f7017fd5aa4a20062b0786105ca2df86e..c8eb82dcc9ccc7814b5f238734295d3d7d339bd6 100644 (file)
@@ -45,13 +45,8 @@ then
         [ "$TEST" = true ] && chacra_ref="test" || chacra_ref="$BRANCH"
         chacra_endpoint="ceph-deploy/${chacra_ref}/${DISTRO}/${DISTRO_VERSION}"
 
-        $VENV/chacractl exists binaries/${chacra_endpoint}/${ARCH} ; exists=$?
-
-        # if the binary already exists in chacra, do not rebuild
-        if [ $exists -eq 0 ] && [ "$FORCE" = false ] ; then
-            echo "The endpoint at ${chacra_endpoint}/${ARCH} already exists and FORCE was not set, Exiting..."
-            exit 0
-        fi
+        # this exists in scripts/build_utils.sh
+        check_binary_existence $chacra_endpoint/$ARCH
 
         if [ ! -e setup.py ] ; then
             echo "Are we in the right directory"
@@ -93,13 +88,8 @@ then
     [ "$TEST" = true ] && chacra_ref="test" || chacra_ref="$BRANCH"
     chacra_endpoint="ceph-deploy/${chacra_ref}/${DISTRO}/${DEB_BUILD}/${ARCH}"
 
-    $VENV/chacractl exists binaries/${chacra_endpoint} ; exists=$?
-
-    # if the binary already exists in chacra, do not rebuild
-    if [ $exists -eq 0 ] && [ "$FORCE" = false ] ; then
-        echo "The endpoint at ${chacra_endpoint} already exists and FORCE was not set, Exiting..."
-        exit 0
-    fi
+    # this exists in scripts/build_utils.sh
+    check_binary_existence $chacra_endpoint
 
     if [ ! -d debian ] ; then
         echo "Are we in the right directory"