Change to mirror logic; keep waiting for primary
commitb33f28ac37b36d688f421ea574ea07a155559f6c
authorThomas Leonard <talex5@gmail.com>
Sat, 26 Apr 2008 18:30:51 +0000 (26 19:30 +0100)
committerThomas Leonard <talex5@gmail.com>
Sat, 26 Apr 2008 18:49:43 +0000 (26 19:49 +0100)
tree546c0d2caf31d14faf031daf1d959942fbcf39a4
parenteba970473c224e0c211b9f0a6939c9d427b019f4
Change to mirror logic; keep waiting for primary

In the previous code, if the upstream site didn't reply before the mirror then
we stopped waiting for it. With a fast mirror and a slow upstream, you might
never see the (newer) upstream version.

Now, we start a mirror download if the primary fails or takes too long (as
before), but we don't abort the primary if the mirror succeeds. We do abort the
mirror if the primary succeeeds, though.
zeroinstall/injector/fetch.py
zeroinstall/injector/handler.py