From 24a356bf71e8c75bc7dbf9b4a619552b4ebe873c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 7 Jun 2013 15:35:54 +0200 Subject: Replace $NIX_DEBUG_SUBST with an option ‘debug-subst’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thus passing ‘--option debug-subst 1’ allows daemon users to turn on debug info and see what the substituter is doing. --- scripts/download-from-binary-cache.pl.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 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 -- cgit 1.4.1