From b762f4df7f6b8d0a4b306fc7e1c2633c4802d1c2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 9 Apr 2003 12:37:49 +0000 Subject: [PATCH] * In `fix --instantiate', only print out the hashes of the Nix descriptors generated out of Fix descriptors specified on the command line. This allows us to say: nix-switch $(fix -i ./test/fixdescriptors/system.fix) --- src/fix.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/fix.cc b/src/fix.cc index 8d5cc6bf8..0d3ae9bff 100644 --- a/src/fix.cc +++ b/src/fix.cc @@ -226,8 +226,6 @@ string instantiateDescriptor(string filename, if (rename(tmpFilename.c_str(), outFilename.c_str())) throw Error("cannot rename " + tmpFilename + " to " + outFilename); - cout << outFilename << endl; - /* Register it with Nix. */ registerFile(outFilename); @@ -245,7 +243,7 @@ void instantiateDescriptors(Strings filenames) it != filenames.end(); it++) { string filename = absPath(*it); - instantiateDescriptor(filename, done); + cout << instantiateDescriptor(filename, done) << endl; } }