From 8755b66cdacee534b3b1ad9d29848058208871b6 Mon Sep 17 00:00:00 2001 From: QiLiang Date: Sat, 6 Aug 2016 01:53:09 +0800 Subject: make_pip_repo bug fix Because of `set -ex` shell setup, if function return no zero the whole scripts will exit. JIRA: COMPASS-427 Change-Id: I153e2f18d367741f41a9840d8a98a39a4b2d055f Signed-off-by: QiLiang --- build/make_repo.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build') diff --git a/build/make_repo.sh b/build/make_repo.sh index 940b2cea..f38da7ff 100755 --- a/build/make_repo.sh +++ b/build/make_repo.sh @@ -220,17 +220,17 @@ function _try_fetch_dependency() ;; *) echo "'$1' cannot be extract()" - return -1 + return ;; esac else echo "'$1' is not a valid file" - return -1 + return fi if [ ! -f ${dir_name}/requirements.txt ]; then echo "${dir_name}/requirements.txt does not exist" - return -1 + return fi pip install --download=$2 -r ${dir_name}/requirements.txt -- cgit 1.2.3-korg