update config
This commit is contained in:
parent
bb54e5a6d5
commit
6ba372a3e8
|
@ -4,5 +4,6 @@
|
||||||
# sync protocol = protocol being used by repository (git, rsync, svn)
|
# sync protocol = protocol being used by repository (git, rsync, svn)
|
||||||
# remote address = the remote repository address to clone from and send commits to
|
# remote address = the remote repository address to clone from and send commits to
|
||||||
# optional branch = in a non-bare repository, this is the branch that will be fetched
|
# optional branch = in a non-bare repository, this is the branch that will be fetched
|
||||||
|
# NOTE: Not every protocol can be used for building Portage tree!
|
||||||
PORTAGE_BUILD=( "build-portage" "git" "git://git.mydomain.org/build-portage.git" "my_branch" )
|
PORTAGE_BUILD=( "build-portage" "git" "git://git.mydomain.org/build-portage.git" "my_branch" )
|
||||||
PORTAGE_MAINLINE=( "mainline-portage" "rsync" "rsync://rsync.mydomain.org/mainline-portage" "N/A" )
|
PORTAGE_MAINLINE=( "mainline-portage" "rsync" "rsync://rsync.mydomain.org/mainline-portage" "N/A" )
|
||||||
|
|
|
@ -80,13 +80,17 @@ function synchronizeRepository() {
|
||||||
for ((i=0; $i<${FETCHTRIES}; i++)); do
|
for ((i=0; $i<${FETCHTRIES}; i++)); do
|
||||||
case "${2}" in
|
case "${2}" in
|
||||||
[Gg][Ii][Tt])
|
[Gg][Ii][Tt])
|
||||||
checkoutGit $1 $3 $4 && return 0
|
checkoutGit ${1} ${3} ${4} && return 0
|
||||||
;;
|
;;
|
||||||
[Rr][Ss][Yy][Nn][Cc])
|
[Rr][Ss][Yy][Nn][Cc])
|
||||||
checkoutRsync $1 $3 && return 0
|
checkoutRsync ${1} ${3} && return 0
|
||||||
;;
|
;;
|
||||||
[Ss][Vv][Nn])
|
[Ss][Vv][Nn])
|
||||||
checkoutSubversion $1 $3 && return 0
|
checkoutSubversion ${1} ${3} && return 0
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
printWarn "Tried to fetch repository using unsupported protocol!"
|
||||||
|
return 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
sleep ${FETCHTIMEOUT}
|
sleep ${FETCHTIMEOUT}
|
||||||
|
|
Loading…
Reference in New Issue