CI: don't check for executable files in temp (MR 4858)

Most things in temp come from Alpine's aports repository, which has
different rules and does not for example mandate that files are not
marked as executable. As such, let's not require packages in there
to conform to our rules.

[ci:skip-build]: already built successfully in CI
This commit is contained in:
Stefan Hansson 2024-02-25 12:33:47 +01:00 committed by Clayton Craft
parent 20463394b0
commit fc9c3c1fef
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A

View file

@ -30,7 +30,7 @@ def test_directories():
# Ensure no file in pmaports are executable.
# see https://gitlab.com/postmarketOS/pmaports/-/issues/593.
def test_executable_files():
for file in glob.iglob("**/*", recursive=True):
for file in glob.iglob("[!temp]**/**/*", recursive=True):
if os.path.isdir(file) or os.path.islink(file):
continue
# still check other less common inode types