about summary refs log tree commit diff
path: root/src/nix-store
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-12-01T20·51+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-12-01T20·51+0000
commita824d58b566752b2a89a718fd628053754968d72 (patch)
treeff624d24dbbc61e199d699aa32e7bcf54773de39 /src/nix-store
parentceb982a1be381d59532d0405451f38d263abb617 (diff)
* Merge addToStore and addToStoreFixed.
* addToStore now adds unconditionally, it doesn't use readOnlyMode.
  Read-only operation is up to the caller (who can call
  computeStorePathForPath).

Diffstat (limited to 'src/nix-store')
-rw-r--r--src/nix-store/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-store/main.cc b/src/nix-store/main.cc
index c3755c2a1ef6..ad346c91fc59 100644
--- a/src/nix-store/main.cc
+++ b/src/nix-store/main.cc
@@ -133,7 +133,7 @@ static void opAddFixed(Strings opFlags, Strings opArgs)
     opArgs.pop_front();
 
     for (Strings::iterator i = opArgs.begin(); i != opArgs.end(); ++i)
-        cout << format("%1%\n") % store->addToStoreFixed(recursive, hashAlgo, *i);
+        cout << format("%1%\n") % store->addToStore(*i, true, recursive, hashAlgo);
 }