Detect Intel Simplified Software License

This commit is contained in:
Brett T. Warden
2025-06-04 15:03:09 -07:00
committed by Brett T. Warden
parent 6aaa12ff76
commit cd8d0065aa

View File

@@ -175,7 +175,7 @@ def scan_for_licenses(srcdir, config, pkg_name):
"about_bsd.txt"]
# look for files that start with copying or licen[cs]e (but are
# not likely scripts) or end with licen[cs]e
target_pat = re.compile(r"^((copying)|(licen[cs]e)|(e[dp]l-v\d+))|(licen[cs]e)(\.(txt|xml))?$")
target_pat = re.compile(r"^((copying)|(licen[cs]e)|(e[dp]l-v\d+))|(licen[cs]e)(\.(txt|xml))?|(intel simplified software license.*\.txt)$")
for dirpath, dirnames, files in os.walk(srcdir):
for name in files:
if name.lower() in targets or target_pat.search(name.lower()):