about summary refs log tree commit diff
path: root/src/libstore/local-store.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r--src/libstore/local-store.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index c91368865309..dce2b449eec0 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -826,7 +826,8 @@ Path LocalStore::importPath(bool requireSignature, Source & source)
 
     PathSet references = readStorePaths(hashAndReadSource);
 
-    Path deriver = readStorePath(hashAndReadSource);
+    Path deriver = readString(hashAndReadSource);
+    if (deriver != "") assertStorePath(deriver);
 
     Hash hash = hashAndReadSource.hashSink.finish();
     hashAndReadSource.hashing = false;