X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=check_whence.py;h=662c60975ae899b24d963c4de28f3d67d71d7a0b;hb=1f8ebdfc2634944cc70c1ca3b4f167e39a7109c1;hp=f83fb197aa579a9097c0d7108049b710232a4474;hpb=e396bbedeabeeeb43e930ba1781ebc83f967c0e9;p=mirror_linux-firmware.git diff --git a/check_whence.py b/check_whence.py index f83fb197..662c6097 100755 --- a/check_whence.py +++ b/check_whence.py @@ -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)