[Nix-dev] What about continuing downloads?

Michael Raskin 7c6f434c at mail.ru
Thu Jul 9 14:35:27 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marc Weber wrote:
> On Thu, Jul 09, 2009 at 08:28:54AM +0400, Michael Raskin wrote:
>> Well, if someone puts up a redirect to a mirror choice instead of the
>> file - at the same URL... You do not want the tarball to begin with
>> "<html>".
> 
> So what's the problem?
> You'll get a hash missmatch and will try downloading from scratch now
> getting the html page only / the new source?

Average Nix user getting a hash mismatch starts investigating... But
yes, it is not a big deal.

I think a flag should simply be passed via a fetchurl parameter. Then
fetchurl can pass it further. default value can be taken from config.nix
using getConfig in all-packages.nix.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEcBAEBAgAGBQJKVeQNAAoJEE6tnN0aWvw3gbsH/AwX+ct+1DEQFgAfwSZ69Wes
lIScuZ2EnzclZuZ1SzajE0F+mXp5HBPn7DfSm3NWbjmYqdjPSkUQiwKB0RiCVH4E
nmzXFiIy+Rkv+Q1nOAa0hkdzhos4MRVGA4dWyDcmOdgUm0yD1xzokjFQV9+vkTki
Hzg+uK9qY5rXvxIn85vuhVTJZSCceSxDM1AVUaHcvuhJJ6VY7dbQumsBmFCg/t3b
2xz4o2mZGf5AzxQ+WgKmiEu8YxtYEV/0xt4zYAPvO0z8S9tZOSVBSwWl6KQig+BE
GmUcZdvMsEcigMD4CF6U7nXN0yma6+ZLq+8QPvrr5TkxIECGMVu0lhp2c8rGDVs=
=/WzG
-----END PGP SIGNATURE-----



More information about the nix-dev mailing list