1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

Eliminate reserveSpace flag

This commit is contained in:
Eelco Dolstra 2016-02-24 17:33:53 +01:00
parent 5a64e66268
commit 28e7e29abd
10 changed files with 33 additions and 37 deletions

View file

@ -320,7 +320,7 @@ void Store::exportPaths(const Paths & paths,
namespace nix {
ref<Store> openStoreAt(const std::string & uri, bool reserveSpace)
ref<Store> openStoreAt(const std::string & uri)
{
if (std::string(uri, 0, 7) == "file://") {
auto store = make_ref<LocalBinaryCacheStore>(std::shared_ptr<Store>(0),
@ -345,13 +345,13 @@ ref<Store> openStoreAt(const std::string & uri, bool reserveSpace)
return mode == mDaemon
? (ref<Store>) make_ref<RemoteStore>()
: (ref<Store>) make_ref<LocalStore>(reserveSpace);
: (ref<Store>) make_ref<LocalStore>();
}
ref<Store> openStore(bool reserveSpace)
ref<Store> openStore()
{
return openStoreAt(getEnv("NIX_REMOTE"), reserveSpace);
return openStoreAt(getEnv("NIX_REMOTE"));
}