about summary refs log tree commit diff
path: root/scripts/download-from-binary-cache.pl.in
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-09-13T18·58-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-09-13T18·58-0400
commite03a8a1c923365ca24ea63ac43d3e09f7f9fb3d8 (patch)
treeae9e66f66846d9b3f35f98260ffe4f51fc5289ee /scripts/download-from-binary-cache.pl.in
parent8fbe96cb3154d5db11b15728ad037bed28f08aa9 (diff)
Doh
Diffstat (limited to 'scripts/download-from-binary-cache.pl.in')
-rw-r--r--scripts/download-from-binary-cache.pl.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/download-from-binary-cache.pl.in b/scripts/download-from-binary-cache.pl.in
index cbac177623..2744501b9d 100644
--- a/scripts/download-from-binary-cache.pl.in
+++ b/scripts/download-from-binary-cache.pl.in
@@ -194,8 +194,8 @@ sub getAvailableCaches {
         my @trustedUrls = (@urls, strToList($Nix::Config::config{"trusted-binary-caches"} // ""));
         @urls = ();
         foreach my $url (@untrustedUrls) {
-            die "binary cache ‘$url’ is not trusted (please add it to ‘trusted-binary-caches’ in $Nix::Config::confDir/nix.conf)\n"
-                unless grep { $url eq $_ } @trustedUrls > 0;
+            die "binary cache ‘$url’ is not trusted (please add it to ‘trusted-binary-caches’ [@trustedUrls] in $Nix::Config::confDir/nix.conf)\n"
+                unless scalar(grep { $url eq $_ } @trustedUrls) > 0;
             push @urls, $url;
         }
     }