ci: pytest: test_provides: ignore kernel fragments

Kernel fragments are not packaged nor used for building the kernels, since only the full
config is used at build-time. As such, they shouldn't be included in the checksums.

Signed-off-by: Aster Boese <asterboese@mailbox.org>
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7798>
This commit is contained in:
Aster Boese
2026-01-22 23:41:00 +00:00
committed by The Friendly Merge Bot
parent a99216d543
commit d1dc06cd1f
+3
View File
@@ -101,6 +101,9 @@ def test_aports_unreferenced_files():
# Skip APKBUILDs and directories
if rel_file_path in ["APKBUILD", "gitlab-ci.yml.j2"] or os.path.isdir(file):
continue
# Skip kernel fragments in linux-* packages
if os.path.basename(rel_file_path).endswith(".config") and apkbuild["pkgname"].startswith("linux-"):
continue
if os.path.basename(rel_file_path) not in sources_chk \
and rel_file_path not in apkbuild["install"] \