Merge pull request #5901 from cmens23/netbeans_exporter

Netbeans Exporter Bugfix
pull/5966/head
Cruz Monrreal 2018-01-29 10:11:59 -06:00 committed by GitHub
commit cf5065c312
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -325,9 +325,11 @@ 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 equal Elements to the match-List
matched.append(element) for elem_prev_dir, elem_cur_dir in zip(prev_dir_list, dir_list):
if elem_prev_dir == elem_cur_dir:
matched.append(elem_cur_dir)
# calculate difference between matched and length # calculate difference between matched and length
diff = dir_depth - len(matched) diff = dir_depth - len(matched)