From cd68a6f2423bd01fa97c156dd7b0aaa6c45d3d08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Bol=C3=ADvar?= Date: Wed, 15 Jan 2020 16:02:25 -0800 Subject: [PATCH] manifest: fix Project.listdir_at() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is returning a list of lists, when it should be returning a list of strings. Signed-off-by: Martí Bolívar --- src/west/manifest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/west/manifest.py b/src/west/manifest.py index 4254b6a..e51261e 100644 --- a/src/west/manifest.py +++ b/src/west/manifest.py @@ -1267,7 +1267,7 @@ class Project: # A tab character separates the SHA from the file name in each # NUL-separated entry. - return [f.decode(encoding).split('\t', 1)[1:] + return [f.decode(encoding).split('\t', 1)[1] for f in out.split(b'\x00') if f] # FIXME: this whole class should just go away. See #327.