diff --git a/Namcap/rules/licensepkg.py b/Namcap/rules/licensepkg.py index e4b5e9b..2621f0e 100644 --- a/Namcap/rules/licensepkg.py +++ b/Namcap/rules/licensepkg.py @@ -33,7 +33,7 @@ class package(TarballRule): # Check all licenses for validity for license in pkginfo["license"]: lowerlicense, _, sublicense = license.lower().partition(':') - if lowerlicense.startswith('custom') or lowerlicense in ("bsd", "mit", "isc", "python", "zlib", "libpng"): + if lowerlicense.startswith('custom') or lowerlicense in ("bsd", "mit", "isc", "python", "zlib", "libpng", "ofl"): if pkginfo["name"] not in licensedirs: self.errors.append(("missing-custom-license-dir usr/share/licenses/%s", pkginfo["name"])) elif len(licensefiles) == 0: