about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-12-15T21·27+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-12-15T21·27+0000
commitcafaceb70721e9a5aea478501eb3b572bbacaa68 (patch)
tree99edf268ecf1ccecd21debc4836dfb112dfb6f96
parent1073b1780a68522a5cad0fe0e1e6735365034118 (diff)
* Handle weird cases when the server redirects us while setting a cookie.
-rw-r--r--scripts/nix-prefetch-url.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-prefetch-url.in b/scripts/nix-prefetch-url.in
index 0cf836599224..c78ee184cfb4 100644
--- a/scripts/nix-prefetch-url.in
+++ b/scripts/nix-prefetch-url.in
@@ -48,7 +48,7 @@ if test -z "$finalPath"; then
     mkdir $tmpPath
 
     # Perform the download.
-    @curl@ --fail --location --max-redirs 20 --disable-epsv "$url" > $tmpFile
+    @curl@ --fail --location --max-redirs 20 --disable-epsv --cookie-jar $tmpPath/cookies "$url" > $tmpFile
 
     # Compute the hash.
     hash=$(@bindir@/nix-hash --type "$hashType" $hashFormat --flat $tmpFile)