summaryrefslogtreecommitdiff
path: root/repo-update
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2011-04-19 22:29:07 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2011-04-19 22:29:07 -0300
commitcc5d8c36419467bdb8147049b70fd91d51acf444 (patch)
treeab625ff77ad255881626b6ee58f54213ea7b0b24 /repo-update
parente891caf97ee563e52b8f5e1f2448db2b0dc49228 (diff)
parent79e48771c2d64b50db5c8dadb4636e98fab94480 (diff)
Merge repo-maintainer into dbscripts. Repo-maintainer will be abandoned as
of this commit. Merge ssh://vparabola/srv/git/projects/repo-maintainer Conflicts: db-functions
Diffstat (limited to 'repo-update')
-rwxr-xr-xrepo-update25
1 files changed, 13 insertions, 12 deletions
diff --git a/repo-update b/repo-update
index 59a0658..2354e0a 100755
--- a/repo-update
+++ b/repo-update
@@ -1,24 +1,25 @@
#!/bin/bash
# -*- coding: utf-8 -*-
-source ./config
-source ./local_config
-source ./libremessages
+source config
+source local_config
+source libremessages
for repo in ${PKGREPOS[@]}; do
for arch in ${ARCHES[@]} 'any'; do
msg "Syncing ${repo} ${arch}"
- filter.py -r "${rsync_blacklist}" -k "${blacklist}" -c \
- \"${rsync_list_command}\ \
- ${mirror}${mirrorpath}/${repo}/os/${arch}\ \
- ${repodir}/${repo}/\"
- find ${repodir}/${repo} -name *${PKGEXT} -print \
- > ${rsync_not_needed}
+ ${rsync_list_command} \
+ ${mirror}::${mirrorpath}/${repo}/os/${arch}/ \
+ ${repodir}/${repo}/ > ${rsout_file}
+ filter.py -r ${rsync_blacklist} -k ${blacklist} \
+ -f ${rsout_file}
+ find ${repodir}/${repo} -name *${PKGEXT} \
+ -fprint ${rsync_not_needed}
${rsync_update_command} \
- ${mirror}${mirrorpath}/${repo}/os/${arch} \
- ${repodir}/${repo} \
--exclude-from=${rsync_blacklist} \
--exclude-from=${rsync_not_needed}
+ ${mirror}::${mirrorpath}/${repo}/os/${arch}/ \
+ ${repodir}/${repo}/
done
for arch in ${ARCHES[@]}; do
if [ -r ${repodir}/${repo}/os/${arch}/${repo}${DBEXT} ]; then
@@ -26,7 +27,7 @@ for repo in ${PKGREPOS[@]}; do
-p ${docs_dir}/pending-${repo} \
-b ${repodir}/${repo}/${repo}${DBEXT}
fi
- clean_repo.py -k ${blacklist} -d ${repodir}/${repo}
+ python clean_repo.py -k ${blacklist} -d ${repodir}/${repo}
done
done