about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-04-04T13·41+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-04-04T13·41+0200
commit0837348049bbdd24378ad9376caad932712d5acd (patch)
tree38870e9815368f2aa21b6d3d9f9fb3f14ad27722 /scripts
parentb8fb0ce5634456ba987231fc755c32af6f4ada30 (diff)
Follow redirects when checking for the existence of MANIFEST.bz2
If we don't follow redirects, we might think that MANIFEST.bz2 exists
just because the HEAD request succeeds on the redirector URI.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/nix-pull.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/nix-pull.in b/scripts/nix-pull.in
index 136a5c9fa4bd..084197c48a1c 100755
--- a/scripts/nix-pull.in
+++ b/scripts/nix-pull.in
@@ -50,7 +50,7 @@ sub processURL {
     my $manifest;
 
     # First see if a bzipped manifest is available.
-    if (system("$Nix::Config::curl --fail --silent --head '$url'.bz2 > /dev/null") == 0) {
+    if (system("$Nix::Config::curl --fail --silent --location --head '$url'.bz2 > /dev/null") == 0) {
         print "fetching list of Nix archives at `$url.bz2'...\n";
         $manifest = downloadFile "$url.bz2";
     }