On 28/03/2008, Jan Kupec
Just a quick thought. Two things that cross my mind are: 1) the idea of downloading & parsing a mirror list for each file doesn't sound appealing to me. - downloading a mirror list for files as small as $repo/media.1/media is pointless
I wouldn't say pointless, but undesirable. If the primary mirror is not available then there needs to be possibility to fall back to a mirror. Metadata is the most important to have failover for. Obviously downloading and parsing a file list for every request is not sensible, but perhaps it could be done at repository level rather than file level to provide a list of candidate mirrors.
2) the feature is specific to downloads.opensuse.org (for now) - we would need to hardcode a is_download_opensuse_org condition to avoid useless requests for other URLs (or introduce a mechanism to query for availability of such capability and check that when starting zypp). This would not apply if the mirror list would be requested and processed only on errors.
One of the causes of errors is the redirector itself being unavailable, at which point it is impossible to query the mirrorlist. So querying mirror list only on error doesn't help much. Querying on repository add, and again on error might be an option. -- Benjamin Weber -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org