1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 01:51:47 +02:00

* Let `nix --install' print out the id of the normal form.

* Some minor refactoring.
This commit is contained in:
Eelco Dolstra 2003-07-29 09:45:03 +00:00
parent ce5fd1cc12
commit 5acb45446e
5 changed files with 35 additions and 34 deletions

View file

@ -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;
}
}