~launchpad-baby-gnu/ubumirror/feature-abort-on-remote-update-in-progress

Viewing all changes in revision 85.

  • Committer: Daniel Dehennin
  • Date: 2015-12-04 13:41:36 UTC
  • Revision ID: daniel.dehennin@ac-dijon.fr-20151204134136-i3cipsw1ji2en293
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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: