X-Git-Url: https://git.proxmox.com/?p=mirror_linux-firmware.git;a=blobdiff_plain;f=check_whence.py;h=662c60975ae899b24d963c4de28f3d67d71d7a0b;hp=f83fb197aa579a9097c0d7108049b710232a4474;hb=9ee52be785cf91fc6a3c6aa27d484873f8270b72;hpb=ade8332383e228cbdcfc605b5e5ef3aa51211401 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)