update config

This commit is contained in:
belliash 2012-01-12 20:34:34 +01:00
parent bb54e5a6d5
commit 6ba372a3e8
2 changed files with 8 additions and 3 deletions

View File

@ -4,5 +4,6 @@
# sync protocol = protocol being used by repository (git, rsync, svn)
# 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
# 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_MAINLINE=( "mainline-portage" "rsync" "rsync://rsync.mydomain.org/mainline-portage" "N/A" )

View File

@ -80,13 +80,17 @@ function synchronizeRepository() {
for ((i=0; $i<${FETCHTRIES}; i++)); do
case "${2}" in
[Gg][Ii][Tt])
checkoutGit $1 $3 $4 && return 0
checkoutGit ${1} ${3} ${4} && return 0
;;
[Rr][Ss][Yy][Nn][Cc])
checkoutRsync $1 $3 && return 0
checkoutRsync ${1} ${3} && return 0
;;
[Ss][Vv][Nn])
checkoutSubversion $1 $3 && return 0
checkoutSubversion ${1} ${3} && return 0
;;
*)
printWarn "Tried to fetch repository using unsupported protocol!"
return 1
;;
esac
sleep ${FETCHTIMEOUT}