diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-08-01T15·33-0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-08-01T15·33-0400 |
commit | 8a25d787d7f05d612521bd489510aa23d4ef2177 (patch) | |
tree | 6f1f148a479fa3742e42332a85effc82f8a27ef7 | |
parent | c770a2422a47526d5eb336af6af4292df68dad2b (diff) |
download-from-binary-cache: Remove duplicate URLs
-rw-r--r-- | scripts/download-from-binary-cache.pl.in | 4 |
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 94c446e37a4c..f7f1f73460da 100644 --- a/scripts/download-from-binary-cache.pl.in +++ b/scripts/download-from-binary-cache.pl.in @@ -8,7 +8,7 @@ use Nix::Store; use Nix::Utils; use WWW::Curl::Easy; use WWW::Curl::Multi; -use List::MoreUtils qw(any); +use List::MoreUtils qw(any uniq); use strict; @@ -190,7 +190,7 @@ sub getAvailableCaches { } } - foreach my $url (@urls) { + foreach my $url (uniq @urls) { # FIXME: not atomic. $queryCache->execute($url); |