]> git.proxmox.com Git - mirror_linux-firmware.git/blobdiff - check_whence.py
check_whence.py: Add support for filenames with spaces in them
[mirror_linux-firmware.git] / check_whence.py
index f83fb197aa579a9097c0d7108049b710232a4474..662c60975ae899b24d963c4de28f3d67d71d7a0b 100755 (executable)
@@ -5,6 +5,10 @@ import os, re, sys
 def list_whence():
     with open('WHENCE') as whence:
         for line in whence:
+            match = re.match(r'(?:File|Link|Source):\s*"(.*)"', line)
+            if match:
+                yield match.group(1)
+                continue
             match = re.match(r'(?:File|Link|Source):\s*(\S*)', line)
             if match:
                 yield match.group(1)