def get_display_list(self, mylist): """Determines the display list to process @param mylist @rtype list Modifies self.counters.blocks, self.counters.blocks_satisfied, """ unsatisfied_blockers = [] ordered_nodes = [] for pkg in mylist: if isinstance(pkg, Blocker): self.counters.blocks += 1 if pkg.satisfied: ordered_nodes.append(pkg) self.counters.blocks_satisfied += 1 else: unsatisfied_blockers.append(pkg) else: ordered_nodes.append(pkg) if self.conf.tree_display: display_list = _tree_display(self.conf, ordered_nodes) else: display_list = [(pkg, 0, True) for pkg in ordered_nodes] for pkg in unsatisfied_blockers: display_list.append((pkg, 0, True)) return display_list