1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-25 19:51:00 +01:00

* 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);
}