mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-20 13:21:28 +00:00
backportpackage: check_call: Take first argument (command name) when reporting error.
This commit is contained in:
parent
3ef8324ff7
commit
cdd93a4cd8
@ -42,7 +42,7 @@ def check_call(cmd, *args, **kwargs):
|
|||||||
Logger.command(cmd)
|
Logger.command(cmd)
|
||||||
ret = subprocess.call(cmd, *args, **kwargs)
|
ret = subprocess.call(cmd, *args, **kwargs)
|
||||||
if ret != 0:
|
if ret != 0:
|
||||||
error('%s returned %d.' % (cmd, ret))
|
error('%s returned %d.' % (cmd[0], ret))
|
||||||
|
|
||||||
def parse(args):
|
def parse(args):
|
||||||
usage = 'Usage: %prog [options] <source package name or .dsc URL/file>'
|
usage = 'Usage: %prog [options] <source package name or .dsc URL/file>'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user