From 4b539e7a32e199bc74191634c2c56d7b679c01b7 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 5 Jun 2023 14:58:05 +0100 Subject: [PATCH] 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 Fixes: 05183b7b ("check_whence: error on duplicate file entries") Signed-off-by: Emil Velikov Signed-off-by: Josh Boyer --- check_whence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_whence.py b/check_whence.py index 711be362..e00fdd19 100755 --- a/check_whence.py +++ b/check_whence.py @@ -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():