aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2016-08-06 01:53:09 +0800
committerQiLiang <liangqi1@huawei.com>2016-08-06 01:57:25 +0800
commit8755b66cdacee534b3b1ad9d29848058208871b6 (patch)
treeb07052bd0258b380f871206ef2d3d412f70736a6
parent0d57b886e0db03377d9ae60af0372310b835b749 (diff)
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 <liangqi1@huawei.com>
-rwxr-xr-xbuild/make_repo.sh6
1 files changed, 3 insertions, 3 deletions
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