mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 06:52:43 +01:00
Slight optimization
This commit is contained in:
parent
abbbad5679
commit
54e1ac6102
1 changed files with 4 additions and 1 deletions
|
|
@ -98,10 +98,13 @@ 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
for (auto & installable : installables) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue