mirror of
https://github.com/clearlinux/autospec.git
synced 2026-11-25 23:23:59 +00:00
Find Eclipse project license files
Examples: epl-v10 epl-v20 edl-v10
This commit is contained in:
committed by
Patrick McCarty
parent
e8ee8e30ce
commit
7eb2f2fb61
+1
-1
@@ -163,7 +163,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))|(licen[cs]e)(\.(txt|xml))?$")
|
||||
target_pat = re.compile(r"^((copying)|(licen[cs]e)|(e[dp]l-v\d+))|(licen[cs]e)(\.(txt|xml))?$")
|
||||
for dirpath, dirnames, files in os.walk(srcdir):
|
||||
for name in files:
|
||||
if name.lower() in targets or target_pat.search(name.lower()):
|
||||
|
||||
Reference in New Issue
Block a user