]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-setup: handle install-deps.sh absence
authorKen Dreyer <kdreyer@redhat.com>
Thu, 30 Jul 2015 02:13:39 +0000 (20:13 -0600)
committerKen Dreyer <kdreyer@redhat.com>
Thu, 30 Jul 2015 02:13:39 +0000 (20:13 -0600)
Prior to this commit, if Jenkins could not find ./install-deps.sh in the
tree, the ceph-setup task would fail.

Older versions of Ceph (such as ceph-0.80.8.x) have no install-deps.sh
script. In these cases, simply continue on with the build.

ceph-setup/build/build

index a290bea4138991ebb89808d5c0c9aed84385e840..edd4d34092700006c4798eb9b663c890348c6ee8 100644 (file)
@@ -32,8 +32,10 @@ rm -rf release
 
 # because autogen+configure will check for dependencies, we are forced to install them
 # and ensure they are present in the current host
-echo "Ensuring dependencies are installed"
-./install-deps.sh
+if [ -x install-deps.sh ]; then
+  echo "Ensuring dependencies are installed"
+  ./install-deps.sh
+fi
 
 # run submodule updates regardless
 echo "Running submodule update ..."