about summary refs log tree commit diff
path: root/src/nix.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-05-30T17·01+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-05-30T17·01+0000
commit5908663f4209eed632b3973c97b25ff5a3dd3b17 (patch)
treeab587663cc7fa022dfdfe7819600d5a30aa3726c /src/nix.cc
parentd1f5fd7216066d4ed04df27546e3d3e0d362c71b (diff)
* Send log output to stderr.
Diffstat (limited to 'src/nix.cc')
-rw-r--r--src/nix.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix.cc b/src/nix.cc
index 7d6b3c97a93c..7f5ca927bbbb 100644
--- a/src/nix.cc
+++ b/src/nix.cc
@@ -232,7 +232,7 @@ void installPkg(string hash)
     /* Create a log file. */
     string logFileName = nixLogDir + "/" + id + "-" + hash + ".log";
     /* !!! auto-pclose on exit */
-    FILE * logFile = popen(("tee " + logFileName).c_str(), "w"); /* !!! escaping */
+    FILE * logFile = popen(("tee " + logFileName + " >&2").c_str(), "w"); /* !!! escaping */
     if (!logFile)
         throw Error("unable to create log file " + logFileName);
 
@@ -331,7 +331,7 @@ void installPkg(string hash)
             throw Error("cannot remove write permission from " + path);
 
     } catch (exception &) {
-        system(("rm -rf " + path).c_str());
+//         system(("rm -rf " + path).c_str());
         throw;
     }