* importPath: don't fail if the deriver is empty.

This commit is contained in:
Eelco Dolstra 2008-04-22 08:16:20 +00:00
parent 54ff6c02ec
commit 262b73e6ad

View File

@ -839,7 +839,7 @@ Path LocalStore::importPath(bool requireSignature, Source & source)
/* !!! if we were clever, we could prevent the hashPath()
here. */
if (!isValidPath(deriver)) deriver = "";
if (deriver != "" && !isValidPath(deriver)) deriver = "";
registerValidPath(dstPath,
hashPath(htSHA256, dstPath), references, deriver);
}