* 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()
|
/* !!! 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…
Reference in a new issue