From 1ae8b79122a722cbe32c96ff46fbe819998be9dc Mon Sep 17 00:00:00 2001 From: Nathan Cutler Date: Mon, 13 Mar 2017 17:21:52 +0100 Subject: [PATCH] buildpackages: use install-deps.sh from local clone if available Fixes: https://github.com/SUSE/teuthology/issues/53 Signed-off-by: Nathan Cutler --- teuthology/task/buildpackages/common.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/teuthology/task/buildpackages/common.sh b/teuthology/task/buildpackages/common.sh index 6c219fcf76..51490ac19a 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 -- 2.39.5