Skip to content

Commit

Permalink
Try a little bit harder to find licenses
Browse files Browse the repository at this point in the history
Look in directories named 'licensing'.
  • Loading branch information
bwarden committed Jun 18, 2024
1 parent fbcebd0 commit f9eab48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autospec/license.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def scan_for_licenses(srcdir, config, pkg_name):
# seen in the DPDK 20.11.3 tree, where the `LICENSES` directory is
# named `license` instead.
dirbase = os.path.basename(dirpath)
if re.search(r'^(LICENSES|licenses?)$', dirbase) and re.search(r'\.txt$', name):
if re.search(r'^(LICENSES|licenses?|licensing)$', dirbase) and re.search(r'\.txt$', name):
license_from_copying_hash(os.path.join(dirpath, name),
srcdir, config, pkg_name)

Expand Down

0 comments on commit f9eab48

Please sign in to comment.