about summary refs log tree commit diff
path: root/scripts/download-from-binary-cache.pl.in
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-06-07T13·35+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-06-07T13·36+0200
commit24a356bf71e8c75bc7dbf9b4a619552b4ebe873c (patch)
treee99fe3ae1e399a79806c8a46a49895a1a8ddc54f /scripts/download-from-binary-cache.pl.in
parent24e063efdcdc42e6ea4ad0c49595ce60e834f3ab (diff)
Replace $NIX_DEBUG_SUBST with an option ‘debug-subst’
Thus passing ‘--option debug-subst 1’ allows daemon users to turn on
debug info and see what the substituter is doing.
Diffstat (limited to 'scripts/download-from-binary-cache.pl.in')
-rw-r--r--scripts/download-from-binary-cache.pl.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/download-from-binary-cache.pl.in b/scripts/download-from-binary-cache.pl.in
index 3b8c8bc7f9ab..332fe5ba5634 100644
--- a/scripts/download-from-binary-cache.pl.in
+++ b/scripts/download-from-binary-cache.pl.in
@@ -26,7 +26,7 @@ my $didExpiration = 0;
 
 my $showAfter = 5; # show that we're waiting for a request after this many seconds
 
-my $debug = ($ENV{"NIX_DEBUG_SUBST"} // "") eq 1;
+my $debug = ($Nix::Config::config{"debug-subst"} // "") eq 1 || ($Nix::Config::config{"untrusted-debug-subst"} // "") eq 1;
 
 my $cacheFileURLs = ($ENV{"_NIX_CACHE_FILE_URLS"} // "") eq 1; # for testing