blob: d7a892436a3f621afbb3bb72bebae5968719facc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/bash
export BASE=$(cd $(dirname $0);pwd)
source ${BASE}/scripts-common/helpers
sync_init_with_depth(){
local groups_opt=$(get_manifest_groups)
while ! repo init --depth=1 ${groups_opt}; do
sleep 30
done
}
sync_init_without_depth(){
local groups_opt=$(get_manifest_groups)
while ! repo init --depth=0 ${groups_opt}; do
sleep 30
done
}
sync(){
#Syncronize and check out
while ! repo sync -j ${CPUS} $@; do
sleep 30
done
}
sync_init_without_depth
sync "$@"
sync_init_with_depth
|