3
0
mirror of https://git.launchpad.net/ubuntu-dev-tools synced 2025-04-17 13:22:11 +00:00

backportpackage: check_call: Take first argument (command name) when reporting error.

This commit is contained in:
Stefano Rivera 2011-01-13 22:58:03 +02:00
parent 3ef8324ff7
commit cdd93a4cd8

@ -42,7 +42,7 @@ def check_call(cmd, *args, **kwargs):
Logger.command(cmd)
ret = subprocess.call(cmd, *args, **kwargs)
if ret != 0:
error('%s returned %d.' % (cmd, ret))
error('%s returned %d.' % (cmd[0], ret))
def parse(args):
usage = 'Usage: %prog [options] <source package name or .dsc URL/file>'