crtm-fix: fix directory logic (#50172)

This commit is contained in:
Alex Richert
2025-04-23 13:55:06 -04:00
committed by GitHub
parent a3c7e97463
commit 21da90e062

View File

@@ -55,6 +55,7 @@ def install(self, spec, prefix):
for d in endian_dirs:
fix_files = fix_files + find(".", "*/{}/*".format(d), recursive=False)
fix_files = fix_files + find(".", "*/*/{}/*".format(d), recursive=False)
fix_files = fix_files + find(".", "*/*/*/{}/*".format(d), recursive=False)
if self.spec.satisfies("~testfiles"):
fix_files = [f for f in fix_files if "/fix/test_data/" not in f]
fix_files = [f for f in fix_files if os.path.isfile(f)]