Add a dummy Store::buildPaths() method

This default implementation of buildPaths() does nothing if all
requested paths are already valid, and throws an "unsupported
operation" error otherwise. This fixes a regression introduced by
c30330df6f in binary cache and legacy
SSH stores.
This commit is contained in:
Eelco Dolstra
2017-05-01 13:43:34 +02:00
parent b0b81b7500
commit 0dddcf867a
5 changed files with 36 additions and 38 deletions
-5
View File
@@ -114,11 +114,6 @@ void BinaryCacheStore::init()
}
}
void BinaryCacheStore::notImpl()
{
throw Error("operation not implemented for binary cache stores");
}
std::shared_ptr<std::string> BinaryCacheStore::getFile(const std::string & path)
{
std::promise<std::shared_ptr<std::string>> promise;