From 03f7aad550ff75956296ed96b999026f9bbf18e6 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Fri, 25 May 2018 10:21:26 +0100 Subject: [PATCH] Avoid failure to install zuul when venv exists Fixes case where a succesfull creation of the virtualenv but failure to install zuul would make the function useless as it would always miss installing zull. Change-Id: Ie5ef82765120094e8147b05443626e2012273fba --- functions.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions.sh b/functions.sh index 7a33d245..bc478b91 100644 --- a/functions.sh +++ b/functions.sh @@ -191,6 +191,9 @@ export WORKSPACE=\`pwd\` if [[ ! -e /usr/zuul-env ]]; then virtualenv /usr/zuul-env +fi + +if [[ ! -e /usr/zuul-env/bin/zuul-cloner ]]; then /usr/zuul-env/bin/pip install zuul fi