Ignore broken "Deriver: unknown-deriver" fields in .narinfo
These were generated by a legacy tool.
This commit is contained in:
parent
023217f07c
commit
c60715e937
1 changed files with 5 additions and 3 deletions
|
@ -59,10 +59,12 @@ NarInfo::NarInfo(const Store & store, const std::string & s, const std::string &
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (name == "Deriver") {
|
else if (name == "Deriver") {
|
||||||
|
if (value != "unknown-deriver") {
|
||||||
auto p = store.storeDir + "/" + value;
|
auto p = store.storeDir + "/" + value;
|
||||||
if (!store.isStorePath(p)) corrupt();
|
if (!store.isStorePath(p)) corrupt();
|
||||||
deriver = p;
|
deriver = p;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (name == "System")
|
else if (name == "System")
|
||||||
system = value;
|
system = value;
|
||||||
else if (name == "Sig")
|
else if (name == "Sig")
|
||||||
|
|
Loading…
Reference in a new issue