From 2ea3bebc23b2d13475c00191f6005740fbdc7771 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 27 Feb 2007 23:18:57 +0000 Subject: [PATCH] * Doh! The deriver can be empty. --- src/libstore/local-store.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index c91368865..dce2b449e 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;