Fix MPL matcher to actually match line
Bug: 317213681
Test: atest --host add3prf_test; Ran against https://crates.io/crates/fdt
Change-Id: Id2200316a8c44c56924fcd959235f29dd78b20a0
diff --git a/scripts/add3prf.py b/scripts/add3prf.py
index 7821e2c..137a19e 100755
--- a/scripts/add3prf.py
+++ b/scripts/add3prf.py
@@ -136,7 +136,7 @@
return License(LicenseType.MIT, LicenseGroup.NOTICE, license_file)
if BSD_MATCHER.match(line):
return License(LicenseType.BSD_LIKE, LicenseGroup.NOTICE, license_file)
- if MPL_MATCHER(LicenseType.MPL, license_file):
+ if MPL_MATCHER.match(line):
return License(LicenseType.MPL, LicenseGroup.RECIPROCAL, license_file)
print("ERROR: cannot decide license type in", license_file,
"assume BSD_LIKE")