Commit 4d0b135a authored by Jonathon Duerig's avatar Jonathon Duerig
Browse files

Bugfix: Properly mark subnodes as unavailable when their parent nodes are.

Previously this didn't work correctly when using the '-a' option.
parent 8a1e3af6
......@@ -1041,12 +1041,16 @@ foreach $node (@nodenames) {
# We don't want to include subnodes unless their parent node is going
# to be in the ptop file too
if (!$nodes{$current->subnode_of()} ||
$sharing_mode{$current->subnode_of()}) {
$sharing_mode{$current->subnode_of()} ||
!$nodetoavailable{$current->subnode_of()}) {
# In fact, nuke it from %nodes so that we don't include its links,
# either
$nodetoavailable{$node} = 0;
if (! $allnodes) {
delete $nodes{$node};
next;
}
}
# Push the subnode's information into its flags
push @flags, "subnode_of:" . $current->subnode_of();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment