From: Harry Huang Date: Mon, 25 Sep 2017 01:59:11 +0000 (+0800) Subject: fix yaml install X-Git-Tag: opnfv-6.0.0~123 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F05%2F42905%2F1;p=compass4nfv.git fix yaml install move yaml install out of if block to install pyyaml whenever apt packages is installed Change-Id: Icbad66e0d8070afcb183c31af4759443bf0cf7f1 Signed-off-by: Harry Huang --- diff --git a/build.sh b/build.sh index 0b91887d..4fd0d19b 100755 --- a/build.sh +++ b/build.sh @@ -65,13 +65,13 @@ function prepare_env() if ! apt --installed list 2>/dev/null |grep "\<$i\>" then sudo apt-get install -y --force-yes $i - sudo pip install pyyaml fi + sudo pip install pyyaml fi if [[ $REDHAT_REL == true ]]; then sudo yum install $i -y - sudo pip install pyyaml fi + sudo pip install pyyaml done set -e }