From: Nathan Cutler Date: Mon, 13 Mar 2017 16:21:52 +0000 (+0100) Subject: buildpackages: use install-deps.sh from local clone if available X-Git-Tag: 1.1.0~211^2~77 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1ae8b79122a722cbe32c96ff46fbe819998be9dc;p=teuthology.git buildpackages: use install-deps.sh from local clone if available Fixes: https://github.com/SUSE/teuthology/issues/53 Signed-off-by: Nathan Cutler --- diff --git a/teuthology/task/buildpackages/common.sh b/teuthology/task/buildpackages/common.sh index 6c219fcf..51490ac1 100644 --- a/teuthology/task/buildpackages/common.sh +++ b/teuthology/task/buildpackages/common.sh @@ -15,7 +15,9 @@ # GNU Library Public License for more details. # function install_deps() { - git archive --remote=git://git.ceph.com/ceph.git master install-deps.sh | tar -xvf - + if [ ! -f install-deps.sh ]; then + git archive --remote=git://git.ceph.com/ceph.git master install-deps.sh | tar -xvf - + fi # # drop the following hack when trusty is not supported anymore # there is no other way as long as we maintain a debian directory that tries