Re: Patch to tidy up wget use, and add return=4 when 404's are seen
-----BEGIN PGP SIGNED MESSAGE-----
Frans Pop wrote:
> Or maybe use a switch to toggle between "continuation" and "full" retries.
> Continuation retries probably make sense for larger files (Packages comes
> to mind) for which the integrity can be checked (md5sum).
> Given the caveats in the wget manpage for -c, it may be safer to not do
> continuation retries at all, but just do a full retry in other cases (like
> fetching preseed files).
OK, I've done -c as an option to fetch-url that adds a -c option to wget
for the 3 retries that it tries if the initial wget fails. I've also
made preseed_fetch accept options and pass them onto fetch-url, so you
can use -c in preseed scripts (for downloading udebs or debs, say)
Here's the patch, split in two as you suggested so that the first half
is just the moving of fetch-url into di-utils:
and the second bit is the wget404 stuff:
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----