Merge lp:~launchpad-baby-gnu/ubumirror/feature-abort-on-remote-update-in-progress into lp:ubumirror
Status: | Needs review | ||||
---|---|---|---|---|---|
Proposed branch: | lp:~launchpad-baby-gnu/ubumirror/feature-abort-on-remote-update-in-progress | ||||
Merge into: | lp:ubumirror | ||||
Diff against target: |
63 lines (+36/-1) 1 file modified
ubuarchive (+36/-1) |
||||
To merge this branch: | bzr merge lp:~launchpad-baby-gnu/ubumirror/feature-abort-on-remote-update-in-progress | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ubumirror Developers | Pending | ||
Review via email: mp+279599@code.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/.
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.