Ignore broken "Deriver: unknown-deriver" fields in .narinfo

These were generated by a legacy tool.
This commit is contained in:
Eelco Dolstra 2017-03-28 13:08:13 +02:00
parent 023217f07c
commit c60715e937
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -59,9 +59,11 @@ NarInfo::NarInfo(const Store & store, const std::string & s, const std::string &
} }
} }
else if (name == "Deriver") { else if (name == "Deriver") {
auto p = store.storeDir + "/" + value; if (value != "unknown-deriver") {
if (!store.isStorePath(p)) corrupt(); auto p = store.storeDir + "/" + value;
deriver = p; if (!store.isStorePath(p)) corrupt();
deriver = p;
}
} }
else if (name == "System") else if (name == "System")
system = value; system = value;