From 5ba84171b7d9cce68570935b4d55ac5dda024fc7 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Mon, 16 Apr 2012 17:49:20 +0100 Subject: [PATCH] Allow command_name to be None if user_command is given "0test -t" needs this. --- zeroinstall/injector/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zeroinstall/injector/run.py b/zeroinstall/injector/run.py index 89a1c21..ae5864d 100644 --- a/zeroinstall/injector/run.py +++ b/zeroinstall/injector/run.py @@ -98,12 +98,12 @@ class Setup(object): @return: the argument list @rtype: [str]""" - assert command_name + assert command_name or user_command prog_args = [] sels = self.selections.selections - while command_name: + while command_name or user_command: command_sel = sels[command_iface] if user_command is None: -- 2.11.4.GIT