mirror of
https://github.com/NixOS/nix
synced 2025-07-07 06:01:48 +02:00
Specialize LocalOverlayStore::registerDrvOutput
This commit is contained in:
parent
0193c2abcd
commit
31e98ed0a0
2 changed files with 13 additions and 0 deletions
|
@ -15,6 +15,17 @@ LocalOverlayStore::LocalOverlayStore(const Params & params)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void LocalOverlayStore::registerDrvOutput(const Realisation & info)
|
||||||
|
{
|
||||||
|
// First do queryRealisation on lower layer to populate DB
|
||||||
|
auto res = lowerStore->queryRealisation(info.id);
|
||||||
|
if (res)
|
||||||
|
LocalStore::registerDrvOutput(*res);
|
||||||
|
|
||||||
|
LocalStore::registerDrvOutput(info);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static RegisterStoreImplementation<LocalOverlayStore, LocalOverlayStoreConfig> regLocalOverlayStore;
|
static RegisterStoreImplementation<LocalOverlayStore, LocalOverlayStoreConfig> regLocalOverlayStore;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,6 +69,8 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Overridden methods…
|
// Overridden methods…
|
||||||
|
|
||||||
|
void registerDrvOutput(const Realisation & info) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue