infocalypse

(djk)
2009-04-05: Output formatting.

Output formatting.

diff --git a/infocalypse/requestingbundles.py b/infocalypse/requestingbundles.py
--- a/infocalypse/requestingbundles.py
+++ b/infocalypse/requestingbundles.py
@@ -452,9 +452,11 @@ class RequestingBundles(RetryingRequestL
                     self.parent.ctx.ui_.status("\n---\n")
                 graph = parse_graph(data)
                 if self.parent.params.get('DUMP_CANONICAL_PATHS', False):
+                    paths = graph.canonical_paths(graph.latest_index,
+                                                  MAX_PATH_LEN)[-20:]
+                    paths.reverse()
                     dump_paths(graph,
-                               graph.canonical_paths(graph.latest_index,
-                                                     MAX_PATH_LEN),
+                               paths,
                                "Canonical paths")
                 self._set_graph(graph)
                 self._reevaluate()