summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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