nix copy: Make -r option use the "from" store
Previously, we tried to compute the closure in the local store, which obviously doesn't work.
This commit is contained in:
parent
287084d688
commit
558eda0115
3 changed files with 14 additions and 4 deletions
|
|
@ -79,9 +79,14 @@ StoreCommand::StoreCommand()
|
|||
mkFlag(0, "store", "store-uri", "URI of the Nix store to use", &storeUri);
|
||||
}
|
||||
|
||||
ref<Store> StoreCommand::createStore()
|
||||
{
|
||||
return openStore(storeUri);
|
||||
}
|
||||
|
||||
void StoreCommand::run()
|
||||
{
|
||||
run(openStore(storeUri));
|
||||
run(createStore());
|
||||
}
|
||||
|
||||
StorePathsCommand::StorePathsCommand()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue