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:
parent
54ff6c02ec
commit
262b73e6ad
1 changed files with 1 additions and 1 deletions
|
|
@ -839,7 +839,7 @@ Path LocalStore::importPath(bool requireSignature, Source & source)
|
||||||
|
|
||||||
/* !!! if we were clever, we could prevent the hashPath()
|
/* !!! if we were clever, we could prevent the hashPath()
|
||||||
here. */
|
here. */
|
||||||
if (!isValidPath(deriver)) deriver = "";
|
if (deriver != "" && !isValidPath(deriver)) deriver = "";
|
||||||
registerValidPath(dstPath,
|
registerValidPath(dstPath,
|
||||||
hashPath(htSHA256, dstPath), references, deriver);
|
hashPath(htSHA256, dstPath), references, deriver);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue