check_whence: strip quotation marks

Earlier commit added check for duplicate entries. Although the commit
was picked without one of its dependencies which removes the quotation
marks in the File entries.

Since the quotation marks are here to stay, escape them as needed in the
script.

Cc: Emil Velikov <emil.l.velikov@gmail.com>
Fixes: 05183b7b ("check_whence: error on duplicate file entries")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Josh Boyer <jwboyer@kernel.org>
This commit is contained in:
Emil Velikov 2023-06-05 14:58:05 +01:00 committed by Josh Boyer
parent 32693d3b6b
commit 4b539e7a32
No known key found for this signature in database
GPG Key ID: A31B6BD72486CFD6
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ def list_whence_files():
for line in whence:
match = re.match(r'File:\s*(.*)', line)
if match:
yield match.group(1).replace("\ ", " ")
yield match.group(1).replace("\ ", " ").replace("\"", "")
continue
def list_git():