diff options
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/store-api.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index e6cbd53dc80a..76ed9942256b 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -547,6 +547,7 @@ void copyStorePath(ref<Store> srcStore, ref<Store> dstStore, if (!info->narHash && dontCheckSigs) { auto info2 = make_ref<ValidPathInfo>(*info); info2->narHash = hashString(htSHA256, *sink.s); + if (!info->narSize) info2->narSize = sink.s->size(); info = info2; } |