forked from lix-project/lix
Fix "error: deriver of path ‘’ is not known"
This commit is contained in:
parent
9233ac7c56
commit
a010c0ae05
|
@ -49,12 +49,11 @@ LocalStore & ensureLocalStore()
|
||||||
|
|
||||||
static Path useDeriver(Path path)
|
static Path useDeriver(Path path)
|
||||||
{
|
{
|
||||||
if (!isDerivation(path)) {
|
if (isDerivation(path)) return path;
|
||||||
path = store->queryDeriver(path);
|
Path drvPath = store->queryDeriver(path);
|
||||||
if (path == "")
|
if (drvPath == "")
|
||||||
throw Error(format("deriver of path ‘%1%’ is not known") % path);
|
throw Error(format("deriver of path ‘%1%’ is not known") % path);
|
||||||
}
|
return drvPath;
|
||||||
return path;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue