Make dependency tree output respect --show-status/--show-summary flags.
authorW. Trevor King <wking@drexel.edu>
Thu, 28 Oct 2010 23:01:42 +0000 (19:01 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 28 Oct 2010 23:01:42 +0000 (19:01 -0400)
libbe/command/depend.py

index 1868dbc619516d3754239f640c8466f594fc8220..e1446febc22bc24fa8b29a4243ffb6dea26f0532 100644 (file)
@@ -225,16 +225,16 @@ class Depend (libbe.command.Command):
                 print >> self.stdout, '%s blocked by:' % bugA.id.user()
                 for depth,node in dtree.blocked_by_tree().thread():
                     if depth == 0: continue
-                    print >> self.stdout, \
-                        '%s%s' % (' '*(depth),
-                        node.bug.string(shortlist=True))
+                    print >> self.stdout, (
+                        '%s%s'
+                        % (' '*(depth), self.bug_string(node.bug, params)))
             if len(dtree.blocks_tree()) > 0:
                 print >> self.stdout, '%s blocks:' % bugA.id.user()
                 for depth,node in dtree.blocks_tree().thread():
                     if depth == 0: continue
-                    print >> self.stdout, \
-                        '%s%s' % (' '*(depth),
-                        node.bug.string(shortlist=True))
+                    print >> self.stdout, (
+                        '%s%s'
+                        % (' '*(depth), self.bug_string(node.bug, params)))
             return 0
 
         if params['blocking-bug-id'] != None: