ci: ignore "gitlab-ci.yml.j2" files in packages

These files are meant for hardware CI and are unrelated to the actual
package.

Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6696
This commit is contained in:
Martin Roukala (né Peres) 2025-06-26 13:24:29 +03:00 committed by Pablo Correa Gómez
parent 0257d1ee5c
commit dd643bff2a
No known key found for this signature in database
GPG key ID: 7A342565FF635F79

View file

@ -99,7 +99,7 @@ def test_aports_unreferenced_files():
for file in glob.iglob(dirname + "/**", recursive=True):
rel_file_path = os.path.relpath(file, dirname)
# Skip APKBUILDs and directories
if rel_file_path == "APKBUILD" or os.path.isdir(file):
if rel_file_path in ["APKBUILD", "gitlab-ci.yml.j2"] or os.path.isdir(file):
continue
if os.path.basename(rel_file_path) not in sources_chk \