summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-09-25 20:12:01 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-09-25 20:12:01 -0500
commitad836d45cc1e29b9671bad0fcfeba99514f746a8 (patch)
tree65c592594c44fb34019bd73f777dece66729a667
parent2db40ba76f088c89b87f0c1b943e50116a9db735 (diff)
Adding sync to pool
-rwxr-xr-xdb-sync-arm26
1 files changed, 26 insertions, 0 deletions
diff --git a/db-sync-arm b/db-sync-arm
index 7391fbc..fa2589a 100755
--- a/db-sync-arm
+++ b/db-sync-arm
@@ -134,6 +134,32 @@ init() {
done
done
+
+ msg "Syncing package pool"
+
+ # Traverse all repo-arch pairs
+ local pkgpool
+ for _arch in "${OURARCHES[@]}"; do
+ for _repo in "${ARMREPOS[@]}"; do
+ if [ "${_repo}" = "community" ]; then
+ pkgpool="pool/community"
+ else
+ pkgpool="pool/packages"
+ fi
+
+ # Sync
+ # *Don't delete-after*, this is the job of cleanup scripts. It will remove our
+ # packages too
+ rsync "${extra[@]}" --no-motd -rtlH \
+ --delay-updates \
+ --safe-links \
+ --include-from="/tmp/${_repo}-${_arch}.whitelist" \
+ --exclude="*" \
+ "${FTP_BASE}/${_repo}/os/${_arch}/" \
+ "${FTP_BASE}/${pkgpool}/"
+ done
+ done
+
date -u +%s > "${FTP_BASE}/lastsync"
# Cleanup