for node in myblockers.root_nodes():
retlist.append(node.split())
- for parent in self.blocker_parents[node]:
- # Valid blockers need to be in the digraph for --tree support.
- self.digraph.add(node, parent)
+ if not reversed:
+ """ Valid blockers need to be in the digraph for --tree
+ support. Blocker validation does not work with reverse mode,
+ so self.altlist() should first be called with reverse disabled
+ so that blockers are properly validated."""
+ for parent in self.blocker_parents[node]:
+ self.digraph.add(node, parent)
return retlist
mydepgraph.display(mymergelist)
prompt="Would you like to resume merging these packages?"
else:
+ """ Blockers that depend on merge order must first be validated by
+ altlist(reversed=False)."""
+ mydepgraph.altlist()
mydepgraph.display(
mydepgraph.altlist(reversed=("--tree" in myopts)))
mergecount=0