forked from lix-project/lix
download-from-binary-cache: Remove duplicate URLs
This commit is contained in:
parent
c770a2422a
commit
8a25d787d7
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue