Skip to content

Commit 0cfb7ca

Browse files
committed
Add logging around deps generation
1 parent 4b12254 commit 0cfb7ca

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

build_platform.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,12 +348,23 @@ def extract_dependencies(output):
348348
libraries = []
349349
platforms = []
350350
COLS = []
351-
for line in output.split('\n'):
351+
for i,line in enumerate(output.split('\n')):
352+
print(i,": ",line)
352353
if not IS_LIBS_FOUND:
353354
if re.match(r'Used library', line):
354355
IS_LIBS_FOUND = True
356+
print("Found libraries token using regex")
357+
print("find Version:", str.find(line, 'Version'))
358+
print("find Path:", str.find(line, 'Path'))
355359
COLS = [0,str.find(line, 'Version'), str.find(line, 'Path')]
356360
continue
361+
else:
362+
if str.find("Used library", line) != -1:
363+
print("Found libraries token using find")
364+
IS_LIBS_FOUND = True
365+
print("non regex find Version:", str.find(line, 'Version'))
366+
print("find Path:", str.find(line, 'Path'))
367+
COLS = [0,str.find(line, 'Version'), str.find(line, 'Path')]
357368
else:
358369
if not IS_BSP_FOUND:
359370
if re.match(r'Used platform', line):

0 commit comments

Comments
 (0)