forked from lix-project/nix-eval-jobs
fix format
This commit is contained in:
parent
a03f039a56
commit
3be8c48f54
|
@ -6,7 +6,6 @@
|
||||||
#include <nix/value-to-json.hh>
|
#include <nix/value-to-json.hh>
|
||||||
#include <nix/derivations.hh>
|
#include <nix/derivations.hh>
|
||||||
|
|
||||||
|
|
||||||
static bool queryIsCached(nix::Store &store,
|
static bool queryIsCached(nix::Store &store,
|
||||||
std::map<std::string, std::string> &outputs) {
|
std::map<std::string, std::string> &outputs) {
|
||||||
uint64_t downloadSize, narSize;
|
uint64_t downloadSize, narSize;
|
||||||
|
@ -23,7 +22,8 @@ static bool queryIsCached(nix::Store &store,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The fields of a derivation that are printed in json form */
|
/* The fields of a derivation that are printed in json form */
|
||||||
Drv::Drv(std::string &attrPath, nix::EvalState &state, nix::DrvInfo &drvInfo, MyArgs &args) {
|
Drv::Drv(std::string &attrPath, nix::EvalState &state, nix::DrvInfo &drvInfo,
|
||||||
|
MyArgs &args) {
|
||||||
|
|
||||||
auto localStore = state.store.dynamic_pointer_cast<nix::LocalFSStore>();
|
auto localStore = state.store.dynamic_pointer_cast<nix::LocalFSStore>();
|
||||||
|
|
||||||
|
@ -58,7 +58,8 @@ Drv::Drv(std::string &attrPath, nix::EvalState &state, nix::DrvInfo &drvInfo, My
|
||||||
meta = meta_;
|
meta = meta_;
|
||||||
}
|
}
|
||||||
if (args.checkCacheStatus) {
|
if (args.checkCacheStatus) {
|
||||||
cacheStatus = queryIsCached(*localStore, outputs) ? Drv::CacheStatus::Cached
|
cacheStatus = queryIsCached(*localStore, outputs)
|
||||||
|
? Drv::CacheStatus::Cached
|
||||||
: Drv::CacheStatus::Uncached;
|
: Drv::CacheStatus::Uncached;
|
||||||
} else {
|
} else {
|
||||||
cacheStatus = Drv::CacheStatus::Unknown;
|
cacheStatus = Drv::CacheStatus::Unknown;
|
||||||
|
|
Loading…
Reference in a new issue