aosp.sh: take use of TUNASYNC_UPSTREAM_URL

This commit is contained in:
Hui Yiqun 2017-04-21 11:15:18 +08:00
parent 3b13366b1c
commit b4b2e175f6

View File

@ -3,11 +3,12 @@ set -e
REPO=${REPO:-"/usr/local/bin/repo"}
USE_BITMAP_INDEX=${USE_BITMAP_INDEX:-"0"}
UPSTREAM=${TUNASYNC_UPSTREAM_URL:-"https://android.googlesource.com/mirror/manifest"}
function repo_init() {
mkdir -p $TUNASYNC_WORKING_DIR
cd $TUNASYNC_WORKING_DIR
$REPO init -u https://android.googlesource.com/mirror/manifest --mirror
$REPO init -u $UPSTREAM --mirror
}
function repo_sync() {