diff options
author | eldritch horrors <pennae@lix.systems> | 2024-04-27 23:44:12 +0200 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-05-09 23:18:05 +0200 |
commit | 17965bf11c55daee81729151f9876e55fdeaf9c1 (patch) | |
tree | b4b7a4ce182e52acf2f8a4cdd6158638dc990162 /src/libstore/build | |
parent | 2f4a1dd6e03f3005e1f11dc98dda2d2d214b1f6f (diff) |
libstore: un-callback-ify Store::queryRealisationUncached
Change-Id: I4a328f46eaac3bb8b19ddc091306de83348be9cf
Diffstat (limited to 'src/libstore/build')
-rw-r--r-- | src/libstore/build/local-derivation-goal.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc index 1b014605d..5b365accd 100644 --- a/src/libstore/build/local-derivation-goal.cc +++ b/src/libstore/build/local-derivation-goal.cc @@ -1353,14 +1353,13 @@ struct RestrictedStore : public virtual RestrictedStoreConfig, public virtual In // corresponds to an allowed derivation { throw Error("registerDrvOutput"); } - void queryRealisationUncached(const DrvOutput & id, - Callback<std::shared_ptr<const Realisation>> callback) noexcept override + std::shared_ptr<const Realisation> queryRealisationUncached(const DrvOutput & id) override // XXX: This should probably be allowed if the realisation corresponds to // an allowed derivation { if (!goal.isAllowed(id)) - callback(nullptr); - next->queryRealisation(id, std::move(callback)); + return nullptr; + return next->queryRealisation(id); } void buildPaths(const std::vector<DerivedPath> & paths, BuildMode buildMode, std::shared_ptr<Store> evalStore) override |