summaryrefslogtreecommitdiff
path: root/tools/patman/patchstream.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-12-15 10:42:04 +0000
committerSimon Glass <sjg@chromium.org>2013-04-04 14:04:33 -0700
commita10fd93cbc2ddf1da1f8b6d915f4bc3276ff7731 (patch)
tree738c8809d2a150bd507a8c0b0b27474e854042ee /tools/patman/patchstream.py
parent71162e3cae29832192497d4a1b966336b638df01 (diff)
downloadu-boot-imx-a10fd93cbc2ddf1da1f8b6d915f4bc3276ff7731.zip
u-boot-imx-a10fd93cbc2ddf1da1f8b6d915f4bc3276ff7731.tar.gz
u-boot-imx-a10fd93cbc2ddf1da1f8b6d915f4bc3276ff7731.tar.bz2
patman: Make command methods return a CommandResult
Rather than returning a list of things, return an object. That makes it easier to access the returned items, and easier to extend the return value later. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/patchstream.py')
-rw-r--r--tools/patman/patchstream.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py
index f7ee75a..1e4a36f 100644
--- a/tools/patman/patchstream.py
+++ b/tools/patman/patchstream.py
@@ -346,7 +346,7 @@ def GetMetaData(start, count):
"""
pipe = [['git', 'log', '--no-color', '--reverse', 'HEAD~%d' % start,
'-n%d' % count]]
- stdout = command.RunPipe(pipe, capture=True)
+ stdout = command.RunPipe(pipe, capture=True).stdout
series = Series()
ps = PatchStream(series, is_log=True)
for line in stdout.splitlines():