aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2017-09-25 09:59:11 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2017-09-25 09:59:11 +0800
commitfb952b8c4cb4a47ad33cf7f7c3a06b83954343a2 (patch)
treed5967d00b0565dc4700c5a9dd5ac49e92508ce42
parent074eab95235e35431b0439e42d253d44b139004e (diff)
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 <huangxiangyu5@huawei.com>
-rwxr-xr-xbuild.sh4
1 files changed, 2 insertions, 2 deletions
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
}