From 61ee5da8b31b44e80e008619a32ca886d8799646 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joshua=20Ismael=20Haase=20Hern=C3=A1ndez?= Date: Sun, 10 Apr 2011 19:27:12 -0500 Subject: Replaced pato2.py functionality in main.sh --- main.sh | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/main.sh b/main.sh index ac504a4..2d59094 100644 --- a/main.sh +++ b/main.sh @@ -4,7 +4,7 @@ source config.sh function mkrsexclude { - error=1 + local error=1 while ${error}; do run_python_cmd "filter.py" error=$? @@ -17,5 +17,19 @@ stdnull "rm -r $tempdir/* " msg "Generating exclude list for rsync" mkrsexclude -msg "Syncing repo files without delete" -${rsync_update_command} --exclude-from=${rsync_blacklist} ${mirror}${mirropath}/ \ No newline at end of file +msg "Syncing repos without delete" +# rsync_update_command does not sync db or abs +${rsync_update_command} --exclude-from=${rsync_blacklist} \ + ${mirror}${mirropath}/{$(echo ${repo_list} | tr ':' ',')} ${repodir} + +msg "Syncing each repo and cleaning" +for repo in $(echo ${repo_list} | tr ':' ' '); do + msg2 "Syncing ${repo}" + ${rsync_post_command} --exclude-from=${rsync_blacklist} \ + ${mirror}${mirropath}/${repo} ${repodir}/${repo} + msg2 "Cleaning ${repo}" + clean-repo.py -d ${repodir}/${repo} \ + -b ${repodir}/${repo}/${repo}.db.tar.gz + msg2 "Making pending list for ${repo}" + run_python_cmd "mkpending.py -r ${repo} -d ${repodir}/${repo}" +done -- cgit v1.2.3-2-g168b