make_pip_repo bug fix 73/18073/1
authorQiLiang <liangqi1@huawei.com>
Fri, 5 Aug 2016 17:53:09 +0000 (01:53 +0800)
committerQiLiang <liangqi1@huawei.com>
Fri, 5 Aug 2016 17:57:25 +0000 (01:57 +0800)
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>
build/make_repo.sh

index 940b2ce..f38da7f 100755 (executable)
@@ -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