Merge lp:~launchpad-baby-gnu/ubumirror/fix-delete-debs-after-dists-sync into lp:ubumirror

Proposed by Daniel Dehennin
Status: Needs review
Proposed branch: lp:~launchpad-baby-gnu/ubumirror/fix-delete-debs-after-dists-sync
Merge into: lp:ubumirror
Diff against target: 25 lines (+3/-3)
1 file modified
ubuarchive (+3/-3)
To merge this branch: bzr merge lp:~launchpad-baby-gnu/ubumirror/fix-delete-debs-after-dists-sync
Reviewer Review Type Date Requested Status
Ubumirror Developers Pending
Review via email: mp+279609@code.launchpad.net

Description of the change

If the deletion of deb file fails, for example if number of files to delete exceed --max-delete, the repository finish in incoherent state.

This patch move the deb file deletion after the synchronisation of indexes.

To post a comment you must log in.

Unmerged revisions

84. By Daniel Dehennin <email address hidden>

Delete debs after dists/ synchronisation

If the deletion fails, for example if number of files to delete exceed
--max-delete, the repository finish in incoherent state.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuarchive'
2--- ubuarchive 2014-06-08 05:58:41 +0000
3+++ ubuarchive 2015-12-04 14:55:30 +0000
4@@ -65,7 +65,7 @@
5 set +e
6 echo "$(date -R): Initiating Ubuntu archive pool sync..."
7
8-rsync -av --partial --delete --delete-after \
9+rsync -av --partial \
10 --timeout=$IO_TIMEOUT \
11 --bwlimit=$SPEED \
12 --exclude "indices/" --exclude "dists/" --exclude "project/trace/${HOSTNAME}" \
13@@ -84,10 +84,10 @@
14
15 echo "$(date -R): Initiating Ubuntu archive dists and indices sync..."
16
17-rsync -av --partial --delete --delete-after \
18+rsync -av --partial --delete --delete-after --delay-updates \
19 --timeout=$IO_TIMEOUT \
20 --bwlimit=$SPEED \
21- --exclude "pool/" --exclude "project/trace/${HOSTNAME}" \
22+ --exclude "project/trace/${HOSTNAME}" \
23 --exclude "Archive-Update-in-Progress-${HOSTNAME}" \
24 $UBUARC_EXCLUDE \
25 $UBUARC_MIRROR $UBUARC_DIR

Subscribers

People subscribed via source and target branches

to status/vote changes: