mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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>
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user