summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2017-09-25 09:59:11 +0800
committerJustin chi <chigang@huawei.com>2017-09-26 14:45:42 +0000
commit6905f82c89d8d9825494bb10959d61e5f7053451 (patch)
treed5967d00b0565dc4700c5a9dd5ac49e92508ce42
parent0337ca28259e0afe67778c778c1cc8697cd93cec (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> (cherry picked from commit fb952b8c4cb4a47ad33cf7f7c3a06b83954343a2)
-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
}