diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-08-27 11:28:34 -0400 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-08-27 11:28:34 -0400 |
commit | 8b8fe6139e05f990b9d2a35652fd9bdb79189f90 (patch) | |
tree | 705277bd75e337c87801c343094134e5b3645a7b /scripts | |
parent | babe54bf97091441353f2219e7846afd0e0d9f16 (diff) | |
download | guix-8b8fe6139e05f990b9d2a35652fd9bdb79189f90.tar.gz |
Drop dependency on List::MoreUtils
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/download-from-binary-cache.pl.in | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/download-from-binary-cache.pl.in b/scripts/download-from-binary-cache.pl.in index 76306405cc..e65e2d5b36 100644 --- a/scripts/download-from-binary-cache.pl.in +++ b/scripts/download-from-binary-cache.pl.in @@ -8,7 +8,6 @@ use Nix::Store; use Nix::Utils; use WWW::Curl::Easy; use WWW::Curl::Multi; -use List::MoreUtils qw(any uniq); use strict; @@ -195,12 +194,12 @@ sub getAvailableCaches { @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 any { $url eq $_ } @trustedUrls; + unless grep { $url eq $_ } @trustedUrls > 0; push @urls, $url; } } - foreach my $url (uniq @urls) { + foreach my $url (Nix::Utils::uniq @urls) { # FIXME: not atomic. $queryCache->execute($url); |