mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-24 12:42:47 +00:00
Merge pull request #255 from dgoodwin/issue253
253 - print cmd info when --debug is supplied
This commit is contained in:
commit
4d75af103f
1 changed files with 6 additions and 0 deletions
|
@ -413,6 +413,12 @@ def run_command(command, print_on_success=False):
|
||||||
If command fails, print status code and command output.
|
If command fails, print status code and command output.
|
||||||
"""
|
"""
|
||||||
(status, output) = getstatusoutput(command)
|
(status, output) = getstatusoutput(command)
|
||||||
|
|
||||||
|
# ISSUE 253 - allow for better debug output
|
||||||
|
debug("Command: %s" % command)
|
||||||
|
debug("Status code: %s" % status)
|
||||||
|
debug("Command output: %s\n" % output)
|
||||||
|
|
||||||
if status > 0:
|
if status > 0:
|
||||||
msgs = [
|
msgs = [
|
||||||
"Error running command: %s\n" % command,
|
"Error running command: %s\n" % command,
|
||||||
|
|
Loading…
Add table
Reference in a new issue