Fix 'nix verify --all' on a binary cache and add a test

This commit is contained in:
Eelco Dolstra
2020-07-13 14:35:01 +02:00
parent 2900a441f5
commit 1d01ae816b
5 changed files with 23 additions and 8 deletions
+1 -1
View File
@@ -410,7 +410,7 @@ struct S3BinaryCacheStoreImpl : public S3BinaryCacheStore
for (auto object : contents) {
auto & key = object.GetKey();
if (key.size() != 40 || !hasSuffix(key, ".narinfo")) continue;
paths.insert(parseStorePath(storeDir + "/" + key.substr(0, key.size() - 8) + "-unknown"));
paths.insert(parseStorePath(storeDir + "/" + key.substr(0, key.size() - 8) + "-" + MissingName));
}
marker = res.GetNextMarker();