mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
StorePathAccessor: Fix path display
Set the prefix to the store path to fix messages like "copying '/' to the store" to "copying '/nix/store/bla' to the store".
This commit is contained in:
parent
d2a07a96ba
commit
fa01db9626
1 changed files with 4 additions and 1 deletions
|
@ -24,7 +24,10 @@ ref<InputAccessor> makeStorePathAccessor(
|
|||
const StorePath & storePath)
|
||||
{
|
||||
// FIXME: should use `store->getFSAccessor()`
|
||||
return makeFSInputAccessor(std::filesystem::path { store->toRealPath(storePath) });
|
||||
auto root = std::filesystem::path { store->toRealPath(storePath) };
|
||||
auto accessor = makeFSInputAccessor(root);
|
||||
accessor->setPathDisplay(root);
|
||||
return accessor;
|
||||
}
|
||||
|
||||
SourcePath getUnfilteredRootPath(CanonPath path)
|
||||
|
|
Loading…
Reference in a new issue