From 8a25d787d7f05d612521bd489510aa23d4ef2177 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 1 Aug 2012 11:33:15 -0400 Subject: download-from-binary-cache: Remove duplicate URLs --- scripts/download-from-binary-cache.pl.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/download-from-binary-cache.pl.in') diff --git a/scripts/download-from-binary-cache.pl.in b/scripts/download-from-binary-cache.pl.in index 94c446e37..f7f1f7346 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); -- cgit v1.2.3