mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-25 23:36:16 +02:00
download-from-binary-cache: Remove duplicate entries in trustedURLs
This commit is contained in:
parent
e345182055
commit
600daf972f
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ sub getAvailableCaches {
|
||||||
# denotes options passed by the client.
|
# denotes options passed by the client.
|
||||||
if (defined $Nix::Config::config{"untrusted-binary-caches"}) {
|
if (defined $Nix::Config::config{"untrusted-binary-caches"}) {
|
||||||
my @untrustedUrls = strToList $Nix::Config::config{"untrusted-binary-caches"};
|
my @untrustedUrls = strToList $Nix::Config::config{"untrusted-binary-caches"};
|
||||||
my @trustedUrls = (@urls, strToList($Nix::Config::config{"trusted-binary-caches"} // ""));
|
my @trustedUrls = Nix::Utils::uniq(@urls, strToList($Nix::Config::config{"trusted-binary-caches"} // ""));
|
||||||
@urls = ();
|
@urls = ();
|
||||||
foreach my $url (@untrustedUrls) {
|
foreach my $url (@untrustedUrls) {
|
||||||
die "binary cache ‘$url’ is not trusted (please add it to ‘trusted-binary-caches’ [@trustedUrls] in $Nix::Config::confDir/nix.conf)\n"
|
die "binary cache ‘$url’ is not trusted (please add it to ‘trusted-binary-caches’ [@trustedUrls] in $Nix::Config::confDir/nix.conf)\n"
|
||||||
|
|
Loading…
Reference in a new issue