1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

Re-implement the WantMassQuery property of binary caches

This commit is contained in:
Eelco Dolstra 2016-05-30 13:33:05 +02:00
parent b66ab6cdbc
commit e222484401
8 changed files with 40 additions and 8 deletions

View file

@ -33,6 +33,9 @@ protected:
doesn't exist. */
virtual std::shared_ptr<std::string> getFile(const std::string & path) = 0;
bool wantMassQuery_ = false;
int priority = 50;
public:
virtual void init();
@ -78,6 +81,8 @@ public:
SubstitutablePathInfos & infos)
{ }
bool wantMassQuery() { return wantMassQuery_; }
void addToStore(const ValidPathInfo & info, const std::string & nar,
bool repair = false) override;