forked from lix-project/lix
parent
2e606e87c4
commit
fa58bff1ab
1 changed files with 8 additions and 0 deletions
|
@ -684,6 +684,14 @@ void RemoteStore::queryRealisationUncached(const DrvOutput & id,
|
||||||
Callback<std::shared_ptr<const Realisation>> callback) noexcept
|
Callback<std::shared_ptr<const Realisation>> callback) noexcept
|
||||||
{
|
{
|
||||||
auto conn(getConnection());
|
auto conn(getConnection());
|
||||||
|
|
||||||
|
if (GET_PROTOCOL_MINOR(conn->daemonVersion) < 27) {
|
||||||
|
warn("The daemon is too old for content-addressed derivations. I’ll do what I can");
|
||||||
|
try {
|
||||||
|
callback(nullptr);
|
||||||
|
} catch (...) { return callback.rethrow(); }
|
||||||
|
}
|
||||||
|
|
||||||
conn->to << wopQueryRealisation;
|
conn->to << wopQueryRealisation;
|
||||||
conn->to << id.to_string();
|
conn->to << id.to_string();
|
||||||
conn.processStderr();
|
conn.processStderr();
|
||||||
|
|
Loading…
Reference in a new issue