Merge pull request #7901 from dawidd6/noassertion-license

dev-cmd/audit: don't error out if no license is detected by GitHub
This commit is contained in:
Mike McQuaid 2020-07-04 14:43:10 +01:00 committed by GitHub
commit 988692cd39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -341,7 +341,7 @@ module Homebrew
return if user.blank?
github_license = GitHub.get_repo_license(user, repo)
return if github_license && (github_license == formula.license)
return if github_license && [formula.license, "NOASSERTION"].include?(github_license)
problem "License mismatch - GitHub license is: #{github_license}, "\
"but Formulae license states: #{formula.license}."