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:
commit
988692cd39
@ -341,7 +341,7 @@ module Homebrew
|
|||||||
return if user.blank?
|
return if user.blank?
|
||||||
|
|
||||||
github_license = GitHub.get_repo_license(user, repo)
|
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}, "\
|
problem "License mismatch - GitHub license is: #{github_license}, "\
|
||||||
"but Formulae license states: #{formula.license}."
|
"but Formulae license states: #{formula.license}."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user