* Doh! The deriver can be empty.

This commit is contained in:
Eelco Dolstra 2007-02-27 23:18:57 +00:00
parent 044b6482c1
commit 2ea3bebc23
1 changed files with 2 additions and 1 deletions

View File

@ -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;