Merge branch 'hash-always-has-type' into HEAD

This commit is contained in:
John Ericson 2020-07-02 21:47:51 +00:00
commit 2f93d9f2ba

View file

@ -66,7 +66,7 @@ NarInfo::NarInfo(const Store & store, const std::string & s, const std::string &
else if (name == "Sig")
sigs.insert(value);
else if (name == "CA") {
if (!value.empty()) throw corrupt();
if (ca) throw corrupt();
// FIXME: allow blank ca or require skipping field?
ca = parseContentAddressOpt(value);
}