Author: eelco
Date: Thu Jan 19 23:07:42 2012
New Revision: 31728
URL: https://nixos.org/websvn/nix/?rev=31728&sc=1
Log:
* Add some debug output to print the derivation name once it's known.
This makes it easier to pinpoint the source of a crash.
Modified:
nix/trunk/src/libexpr/primops.cc
Modified: nix/trunk/src/libexpr/primops.cc
==============================================================================
--- nix/trunk/src/libexpr/primops.cc Thu Jan 19 22:29:26 2012 (r31727)
+++ nix/trunk/src/libexpr/primops.cc Thu Jan 19 23:07:42 2012 (r31728)
@@ -305,7 +305,10 @@
drv.env[key] = s;
if (key == "builder") drv.builder = s;
else if (i->name == state.sSystem) drv.platform = s;
- else if (i->name == state.sName) drvName = s;
+ else if (i->name == state.sName) {
+ drvName = s;
+ printMsg(lvlVomit, format("derivation name is `%1%'") %
drvName);
+ }
else if (key == "outputHash") outputHash = s;
else if (key == "outputHashAlgo") outputHashAlgo = s;
else if (key == "outputHashMode") {
_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits