From ad836d45cc1e29b9671bad0fcfeba99514f746a8 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Fri, 25 Sep 2015 20:12:01 -0500 Subject: Adding sync to pool --- db-sync-arm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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 -- cgit v1.2.3