mirror of
https://github.com/NixOS/nix
synced 2025-06-26 07:31:15 +02:00
nix verify --all: Support local binary caches
This commit is contained in:
parent
0dd988d2e3
commit
6963de2091
2 changed files with 16 additions and 2 deletions
|
@ -227,8 +227,8 @@ struct S3BinaryCacheStoreImpl : public S3BinaryCacheStore
|
|||
|
||||
for (auto object : contents) {
|
||||
auto & key = object.GetKey();
|
||||
if (!hasSuffix(key, ".narinfo")) continue;
|
||||
paths.insert(settings.nixStore + "/" + std::string(key, 0, key.size() - 8));
|
||||
if (key.size() != 40 || !hasSuffix(key, ".narinfo")) continue;
|
||||
paths.insert(settings.nixStore + "/" + key.substr(0, key.size() - 8));
|
||||
}
|
||||
|
||||
marker = res.GetNextMarker();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue