Merge lp://staging/~launchpad-baby-gnu/ubumirror/feature-abort-on-remote-update-in-progress into lp://staging/ubumirror

Proposed by Daniel Dehennin
Status: Needs review
Proposed branch: lp://staging/~launchpad-baby-gnu/ubumirror/feature-abort-on-remote-update-in-progress
Merge into: lp://staging/ubumirror
Diff against target: 63 lines (+36/-1)
1 file modified
ubuarchive (+36/-1)
To merge this branch: bzr merge lp://staging/~launchpad-baby-gnu/ubumirror/feature-abort-on-remote-update-in-progress
Reviewer Review Type Date Requested Status
Ubumirror Developers Pending
Review via email: mp+279599@code.staging.launchpad.net

Description of the change

My patch add some checks on remote mirror state.

It minimize the risk of synchronising a dists/ directory not related to pool/ if our synchronisation speed is slower than the remote one :

- we start synchronising pool/
- remote start its own synchronisation and finish
- synchronisation of pool/ finish for us
- we start synchronising dists/

In which case our current dists/ does not have the proper pool/.

To post a comment you must log in.

Unmerged revisions

85. By Daniel Dehennin <email address hidden>

Check remote state before synchronising dist

Sometimes, the synchronisation of pool/ is long enough for remote mirror
to begin a new synchronisation before we start synchronising dists/.

We need to check if remote “project/trace/” has changed since we started
as the remote mirror could be faster than us.

* ubuarchive: Call “check_remote_state” before syncing pool and dist.
 (check_remote_state): Check remote “Archive-Update-in-Progress” lock
 and if remote “project/trace/” has changed.
 (_clean_on_exit): function to clean everything at EXIT.

84. By Daniel Dehennin <email address hidden>

Abort if the remote update is in progress

* ubuarchive: Test if remote 'Archive-Update-in-Progress-*' is present.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to status/vote changes: