From 57e2bb70b8a28a427f1b131718cf5f58ce7ffd60 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Mon, 3 Jan 2011 15:55:04 +0000 Subject: [PATCH] Fixed --show to include recursive runners --- zeroinstall/injector/cli.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/zeroinstall/injector/cli.py b/zeroinstall/injector/cli.py index 7395a0b..074118e 100644 --- a/zeroinstall/injector/cli.py +++ b/zeroinstall/injector/cli.py @@ -339,17 +339,21 @@ def _get_selections(sels, options): print indent + " Path:", path indent += " " deps = impl.dependencies - if command: - deps += command.requires + if command is not None: + deps += sels.commands[command].requires for child in deps: if isinstance(child, model.InterfaceDependency): - print_node(child.interface, None, indent) + if child.qdom.name == 'runner': + child_command = command + 1 + else: + child_command = None + print_node(child.interface, child_command, indent) else: print indent + " No selected version" if sels.commands: - print_node(sels.interface, sels.commands[0], "") + print_node(sels.interface, 0, "") else: print_node(sels.interface, None, "") -- 2.11.4.GIT