From c60715e937e3773bbb8a114fc9b9c6577f8c5cb5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 28 Mar 2017 13:08:13 +0200 Subject: [PATCH] Ignore broken "Deriver: unknown-deriver" fields in .narinfo These were generated by a legacy tool. --- src/libstore/nar-info.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/libstore/nar-info.cc b/src/libstore/nar-info.cc index 201cac671..d1042c6de 100644 --- a/src/libstore/nar-info.cc +++ b/src/libstore/nar-info.cc @@ -59,9 +59,11 @@ NarInfo::NarInfo(const Store & store, const std::string & s, const std::string & } } else if (name == "Deriver") { - auto p = store.storeDir + "/" + value; - if (!store.isStorePath(p)) corrupt(); - deriver = p; + if (value != "unknown-deriver") { + auto p = store.storeDir + "/" + value; + if (!store.isStorePath(p)) corrupt(); + deriver = p; + } } else if (name == "System") system = value;