diff options
author | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-04-10 19:27:12 -0500 |
---|---|---|
committer | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-04-10 19:27:12 -0500 |
commit | 61ee5da8b31b44e80e008619a32ca886d8799646 (patch) | |
tree | 160c3711b2f2ce15060594fc86acedf8c7dce0b7 | |
parent | 69d84cc6edab249037522d00d3685939dc38495a (diff) |
Replaced pato2.py functionality in main.sh
-rw-r--r-- | main.sh | 20 |
1 files changed, 17 insertions, 3 deletions
@@ -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 |