]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-release-rpm: use check_binary_existence from build_utils
authorAndrew Schoen <aschoen@redhat.com>
Tue, 17 Nov 2015 18:48:24 +0000 (12:48 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Tue, 17 Nov 2015 18:48:24 +0000 (12:48 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-release-rpm/build/build

index 0479a5384a1904ce84b87666c66c8c4271e7103e..6209019ea2e622a030dcfbc6208610399e3f7323 100644 (file)
@@ -37,13 +37,7 @@ if [ "$target" = "sles11sp2" ] ; then
 fi
 echo "Target directory is: $target"
 
-$VENV/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
-    echo "The endpoint at ${chacra_baseurl}/${ARCH} already exists and FORCE was not set, Exiting..."
-    exit 0
-fi
+check_binary_existence $chacra_baseurl/$ARCH
 
 # setup rpm build area
 mkdir -p RPMBUILD/{BUILD,RPMS,SOURCES,SPECS,SRPMS}