1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-02 17:41:48 +02:00

Check meta values and warn about bad ones

This commit is contained in:
Eelco Dolstra 2013-11-19 14:29:39 +01:00
parent 0f24400d90
commit 30b986908e
4 changed files with 54 additions and 26 deletions

View file

@ -88,7 +88,7 @@ bool createUserEnv(EvalState & state, DrvInfos & elems,
StringSet metaNames = i->queryMetaNames();
foreach (StringSet::iterator, j, metaNames) {
Value * v = i->queryMeta(*j);
state.strictForceValue(*v); // FIXME
if (!v) continue;
vMeta.attrs->push_back(Attr(state.symbols.create(*j), v));
}
v.attrs->sort();