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
+3 -1
View File
@@ -52,7 +52,9 @@ protected:
if (entry.name.size() != 40 ||
!hasSuffix(entry.name, ".narinfo"))
continue;
paths.insert(parseStorePath(storeDir + "/" + entry.name.substr(0, entry.name.size() - 8)));
paths.insert(parseStorePath(
storeDir + "/" + entry.name.substr(0, entry.name.size() - 8)
+ "-" + MissingName));
}
return paths;