From: QiLiang Date: Fri, 5 Aug 2016 17:53:09 +0000 (+0800) Subject: make_pip_repo bug fix X-Git-Tag: colorado.1.0~46^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=8755b66cdacee534b3b1ad9d29848058208871b6;p=compass4nfv.git 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 --- 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