]> git.proxmox.com Git - mirror_linux-firmware.git/blobdiff - check_whence.py
Merge branch 'robot/pr-0-1700470117' into 'main'
[mirror_linux-firmware.git] / check_whence.py
index 59a7199086a6dfb819d00e994aae7a5d6e0cb9ce..4b5471e04a6f58a0fe5ef51a9c8fd313f6206c07 100755 (executable)
@@ -7,11 +7,11 @@ from io import open
 def list_whence():
     with open("WHENCE", encoding="utf-8") as whence:
         for line in whence:
-            match = re.match(r'(?:File|Source):\s*"(.*)"', line)
+            match = re.match(r'(?:RawFile|File|Source):\s*"(.*)"', line)
             if match:
                 yield match.group(1)
                 continue
-            match = re.match(r"(?:File|Source):\s*(\S*)", line)
+            match = re.match(r"(?:RawFile|File|Source):\s*(\S*)", line)
             if match:
                 yield match.group(1)
                 continue
@@ -35,7 +35,7 @@ def list_whence():
 def list_whence_files():
     with open("WHENCE", encoding="utf-8") as whence:
         for line in whence:
-            match = re.match(r"File:\s*(.*)", line)
+            match = re.match(r"(?:RawFile|File):\s*(.*)", line)
             if match:
                 yield match.group(1).replace("\ ", " ").replace('"', "")
                 continue
@@ -74,7 +74,9 @@ def main():
         [
             ".gitignore",
             ".codespell.cfg",
+            ".gitlab-ci.yml",
             ".pre-commit-config.yaml",
+            "build_packages.py",
             "check_whence.py",
             "configure",
             "Makefile",
@@ -82,6 +84,11 @@ def main():
             "copy-firmware.sh",
             "WHENCE",
             "Dockerfile",
+            "contrib/templates/debian.changelog",
+            "contrib/templates/debian.control",
+            "contrib/templates/debian.copyright",
+            "contrib/templates/rpm.spec",
+            "contrib/process_linux_firmware.py",
         ]
     )
     known_prefixes = set(name for name in whence_list if name.endswith("/"))