summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/utils
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-03-26 20:34:27 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-01 08:14:57 +0100
commitd39a1588556d0063ac9c2dd7ed310826db41e677 (patch)
tree9cd0cdbbd9c7d7acd1c938f8138c849c92e19c73 /scripts/lib/wic/utils
parent2122dd7718f46f266e3c03b48828be8977a9baf2 (diff)
downloadpoky-d39a1588556d0063ac9c2dd7ed310826db41e677.tar.gz
wic: remove runner.show API
Replaced runner.show call to exec_cmd call in bootimg-pcbios plugin. Removed runner.show API as it's not used anywhere else. [YOCTO #10618] (From OE-Core rev: 9749336c37249af99c92478c3e4dc8821cb9a816) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/utils')
-rw-r--r--scripts/lib/wic/utils/runner.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/scripts/lib/wic/utils/runner.py b/scripts/lib/wic/utils/runner.py
index 56d7ea3adf..348557aee8 100644
--- a/scripts/lib/wic/utils/runner.py
+++ b/scripts/lib/wic/utils/runner.py
@@ -82,30 +82,6 @@ def runtool(cmdln_or_args, catch=1):
82 82
83 return (process.returncode, out) 83 return (process.returncode, out)
84 84
85def show(cmdln_or_args):
86 """Show all messages using logger.debug."""
87
88 rcode, out = runtool(cmdln_or_args, catch=3)
89
90 if isinstance(cmdln_or_args, list):
91 cmd = ' '.join(cmdln_or_args)
92 else:
93 cmd = cmdln_or_args
94
95 msg = 'running command: "%s"' % cmd
96 if out:
97 out = out.strip()
98 if out:
99 msg += ', with output::'
100 msg += '\n +----------------'
101 for line in out.splitlines():
102 msg += '\n | %s' % line
103 msg += '\n +----------------'
104
105 logger.debug(msg)
106
107 return rcode
108
109def outs(cmdln_or_args, catch=1): 85def outs(cmdln_or_args, catch=1):
110 # get the outputs of tools 86 # get the outputs of tools
111 return runtool(cmdln_or_args, catch)[1].strip() 87 return runtool(cmdln_or_args, catch)[1].strip()