aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/nar-info.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-07-02 21:47:51 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-07-02 21:47:51 +0000
commit2f93d9f2ba40760d82c189480f7a7de06e7ccb86 (patch)
tree609aa3bb6118d74b9e0df80eb57cecc966101e78 /src/libstore/nar-info.cc
parent1fc835aa223520f37e4945fa8626a096f170b188 (diff)
parent1be279af2622b196cc4630c48254adc96071c7e9 (diff)
Merge branch 'hash-always-has-type' into HEAD
Diffstat (limited to 'src/libstore/nar-info.cc')
-rw-r--r--src/libstore/nar-info.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/nar-info.cc b/src/libstore/nar-info.cc
index 2a52e4098..5812aa4ac 100644
--- a/src/libstore/nar-info.cc
+++ b/src/libstore/nar-info.cc
@@ -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);
}