Merge pull request #1913 from nelsonag/xsdir_fix

Fixed parsing of xsdir entries with a continuation line
This commit is contained in:
Paul Romano 2021-11-22 22:05:40 -06:00 committed by GitHub
commit f0aa6664b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -540,7 +540,7 @@ def get_libraries_from_xsdir(path):
continue_lines = [i for i, line in enumerate(lines)
if line.strip().endswith('+')]
for i in reversed(continue_lines):
lines[i] += lines[i].strip()[:-1] + lines.pop(i + 1)
lines[i] = lines[i].strip()[:-1] + lines.pop(i + 1)
# Create list of ACE libraries -- we use an ordered dictionary while
# building to get O(1) membership checks while retaining insertion order