about summary refs log tree commit diff
path: root/src/nix.cc
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-07-29T09·45+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-07-29T09·45+0000
commit5acb45446e756c023bcb6f052331181671580a5e (patch)
treee4e1736b9e7df49a9ecc3107e57e4139988779d1 /src/nix.cc
parentce5fd1cc12f678627163d532acd7dd4251758198 (diff)
* Let `nix --install' print out the id of the normal form.
* Some minor refactoring.

Diffstat (limited to 'src/nix.cc')
-rw-r--r--src/nix.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nix.cc b/src/nix.cc
index 9e62fa3950ae..6dc5776e25db 100644
--- a/src/nix.cc
+++ b/src/nix.cc
@@ -44,7 +44,11 @@ static void opInstall(Strings opFlags, Strings opArgs)
 
     for (Strings::iterator it = opArgs.begin();
          it != opArgs.end(); it++)
-        realiseSlice(normaliseFState(argToId(*it)));
+    {
+        FSId id = normaliseFState(argToId(*it));
+        realiseSlice(id);
+        cout << format("%1%\n") % (string) id;
+    }
 }