On 20 September 2014 21:21, Shea Levy <[email protected]> wrote:
> fetchurl does depend on the base name, it's the nixos tarball mirror that
> doesn't

Ah, I didn't know that. I did a quick test now, which verified your statement.

When changing the url, but keeping the hash, fetchurl re-downloads. A
new store path is created with *new name*, but *old file contents*.

On 20 September 2014 21:26, Vladimír Čunát <[email protected]> wrote:
[...]
> When I change the basename (and leave the hash the same), fetchurl *will*
> re-download, because the output name of the file does change. (It will fail,
> so I see little point anyway.)

Actually, it doesn't fail. (At least in my test.)
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to