summaryrefslogtreecommitdiff
path: root/main.sh
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-04-11 01:09:25 -0500
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2011-04-11 01:09:25 -0500
commit3fb5f8efef231dd7784be880934cd106603ab6f1 (patch)
treeb3f62a0fb712de3f0c5fea92f7171d6fbf3cd2b2 /main.sh
parent61ee5da8b31b44e80e008619a32ca886d8799646 (diff)
bash-port ready for testing.
Diffstat (limited to 'main.sh')
-rw-r--r--main.sh20
1 files changed, 12 insertions, 8 deletions
diff --git a/main.sh b/main.sh
index 2d59094..1a2c6c4 100644
--- a/main.sh
+++ b/main.sh
@@ -23,13 +23,17 @@ ${rsync_update_command} --exclude-from=${rsync_blacklist} \
${mirror}${mirropath}/{$(echo ${repo_list} | tr ':' ',')} ${repodir}
msg "Syncing each repo and cleaning"
+msg2 "Remove pending files"
+stdnull "rm -rf ${pending}*"
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}"
+ for arch in $(echo ${arch_list} | tr ':' ' '); do
+ msg2 "Syncing ${repo} ${arch}"
+ ${rsync_post_command} --exclude-from=${rsync_blacklist} \
+ ${mirror}${mirropath}/${repo} ${repodir}/${repo}
+ msg2 "Making pending list for ${repo} ${arch}"
+ run_python_cmd "mkpending.py -r ${repo} -b ${repodir}/${repo}/os/${arch}"
+ msg2 "Cleaning ${repo} ${arch}"
+ run_python_cmd "clean-repo.py -b ${repodir}/${repo}/os/${arch}/${repo}.db.tar.gz -d ${repodir}/${repo}/os/${arch}/"
+ get_license.sh
+ done
done