summaryrefslogtreecommitdiff
path: root/repo-update
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2011-04-17 03:21:06 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2011-04-17 03:21:06 -0300
commit235f41ad8687880f36c5dcc073853e2eb70540fb (patch)
tree2babee156e8402c18bdf00d431376c40693f5791 /repo-update
parentd246da4bb04eee35189c79c8466c21ff86678e42 (diff)
parent375f87c696cb7838c17922a83e956adbec8ef414 (diff)
Merge branch 'master' of ssh://vparabola/srv/git/projects/dbscripts
Conflicts: cron-jobs/sourceballs2
Diffstat (limited to 'repo-update')
-rwxr-xr-xrepo-update36
1 files changed, 36 insertions, 0 deletions
diff --git a/repo-update b/repo-update
new file mode 100755
index 0000000..59a0658
--- /dev/null
+++ b/repo-update
@@ -0,0 +1,36 @@
+#!/bin/bash
+# -*- coding: utf-8 -*-
+
+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_update_command} \
+ ${mirror}${mirrorpath}/${repo}/os/${arch} \
+ ${repodir}/${repo} \
+ --exclude-from=${rsync_blacklist} \
+ --exclude-from=${rsync_not_needed}
+ done
+ for arch in ${ARCHES[@]}; do
+ if [ -r ${repodir}/${repo}/os/${arch}/${repo}${DBEXT} ]; then
+ clean_repo.py -k ${blacklist} -w ${whitelist} \
+ -p ${docs_dir}/pending-${repo} \
+ -b ${repodir}/${repo}/${repo}${DBEXT}
+ fi
+ clean_repo.py -k ${blacklist} -d ${repodir}/${repo}
+ done
+done
+
+db-update
+ftpdir-cleanup
+
+get_license.sh