mirror of
https://github.com/NixOS/nix.git
synced 2024-11-21 22:32:26 +00:00
* importPath: don't fail if the deriver is empty.
This commit is contained in:
parent
54ff6c02ec
commit
262b73e6ad
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user