mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 22:42:41 +01:00
Slight optimization
This commit is contained in:
parent
abbbad5679
commit
54e1ac6102
1 changed files with 4 additions and 1 deletions
|
|
@ -98,8 +98,11 @@ struct CmdListTarballs : MixJSON, InstallablesCommand
|
|||
} catch (EvalError & e) {
|
||||
}
|
||||
} else {
|
||||
for (auto & attr : *v->attrs)
|
||||
std::unordered_set<Value *> vs;
|
||||
for (auto & attr : *v->attrs) {
|
||||
if (!vs.insert(attr.value).second) continue;
|
||||
findDerivations(attr.value);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue