mirror of https://github.com/ARMmbed/mbed-os.git
Fixed a bug with multiple Sub-Directories with same name
parent
3a8da4c24c
commit
035fe91ebd
|
@ -325,8 +325,15 @@ class GNUARMNetbeans(Exporter):
|
||||||
if cur_dir and prev_dir != cur_dir:
|
if cur_dir and prev_dir != cur_dir:
|
||||||
# evaluate all matched items (from current and previous list)
|
# evaluate all matched items (from current and previous list)
|
||||||
matched = []
|
matched = []
|
||||||
for element in dir_list:
|
# Compare the Element in Previous Dir with the Elements in Current Dir
|
||||||
if element in prev_dir_list:
|
# and add the Differences to the match-List
|
||||||
|
if len(dir_list) <= len(prev_dir_list):
|
||||||
|
for idx, element in enumerate(dir_list):
|
||||||
|
if element == prev_dir_list[idx]:
|
||||||
|
matched.append(element)
|
||||||
|
else:
|
||||||
|
for idx, element in enumerate(prev_dir_list):
|
||||||
|
if element == dir_list[idx]:
|
||||||
matched.append(element)
|
matched.append(element)
|
||||||
|
|
||||||
# calculate difference between matched and length
|
# calculate difference between matched and length
|
||||||
|
|
Loading…
Reference in New Issue