aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2007-02-27 23:18:57 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2007-02-27 23:18:57 +0000
commit2ea3bebc23b2d13475c00191f6005740fbdc7771 (patch)
treecda01c8cd6812f8d0cb2f11b6f2941a2ca1c2221 /src
parent044b6482c185ba8966d9d893b033d97d66b5f225 (diff)
* Doh! The deriver can be empty.
Diffstat (limited to 'src')
-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 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;