]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
buildpackages: use install-deps.sh from local clone if available
authorNathan Cutler <ncutler@suse.com>
Mon, 13 Mar 2017 16:21:52 +0000 (17:21 +0100)
committerKyr Shatskyy <kyrylo.shatskyy@suse.com>
Mon, 14 Oct 2019 14:47:01 +0000 (16:47 +0200)
Fixes: https://github.com/SUSE/teuthology/issues/53
Signed-off-by: Nathan Cutler <ncutler@suse.com>
teuthology/task/buildpackages/common.sh

index 6c219fcf76dc4b98ff37a8838ba87aeb3c6abc95..51490ac19a45d83fbd62e07b7e607adb637c45e3 100644 (file)
@@ -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