diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-09-25 20:12:01 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-09-25 20:12:01 -0500 |
commit | ad836d45cc1e29b9671bad0fcfeba99514f746a8 (patch) | |
tree | 65c592594c44fb34019bd73f777dece66729a667 | |
parent | 2db40ba76f088c89b87f0c1b943e50116a9db735 (diff) |
Adding sync to pool
-rwxr-xr-x | db-sync-arm | 26 |
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 |