Browse Source

update config

master
belliash 9 years ago
parent
commit
6ba372a3e8
2 changed files with 8 additions and 3 deletions
  1. +1
    -0
      config/ezsync.conf
  2. +7
    -3
      libraries/repositories

+ 1
- 0
config/ezsync.conf 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" )

+ 7
- 3
libraries/repositories 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}


Loading…
Cancel
Save