From 24a356bf71e8c75bc7dbf9b4a619552b4ebe873c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 7 Jun 2013 15:35:54 +0200 Subject: [PATCH] =?UTF-8?q?Replace=20$NIX=5FDEBUG=5FSUBST=20with=20an=20op?= =?UTF-8?q?tion=20=E2=80=98debug-subst=E2=80=99?= 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(-) diff --git a/scripts/download-from-binary-cache.pl.in b/scripts/download-from-binary-cache.pl.in index 3b8c8bc7f..332fe5ba5 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