brew style --fix
This commit is contained in:
parent
797a07d555
commit
3982810eab
@ -333,6 +333,7 @@ module Homebrew
|
|||||||
non_standard_licenses = []
|
non_standard_licenses = []
|
||||||
formula.license.each do |lic|
|
formula.license.each do |lic|
|
||||||
next if @spdx_data["licenses"].any? { |standard_lic| standard_lic["licenseId"] == lic }
|
next if @spdx_data["licenses"].any? { |standard_lic| standard_lic["licenseId"] == lic }
|
||||||
|
|
||||||
non_standard_licenses << lic
|
non_standard_licenses << lic
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -351,7 +352,6 @@ module Homebrew
|
|||||||
problem "License mismatch - GitHub license is: #{Array(github_license)}, "\
|
problem "License mismatch - GitHub license is: #{Array(github_license)}, "\
|
||||||
"but Formulae license states: #{formula.license}."
|
"but Formulae license states: #{formula.license}."
|
||||||
|
|
||||||
|
|
||||||
elsif @new_formula
|
elsif @new_formula
|
||||||
problem "No license specified for package."
|
problem "No license specified for package."
|
||||||
end
|
end
|
||||||
|
|||||||
@ -2214,7 +2214,7 @@ class Formula
|
|||||||
# <pre>license "BSD-2-Clause"</pre>
|
# <pre>license "BSD-2-Clause"</pre>
|
||||||
def license(args = nil)
|
def license(args = nil)
|
||||||
if args.nil?
|
if args.nil?
|
||||||
return @licenses
|
@licenses
|
||||||
else
|
else
|
||||||
@licenses = Array(args) unless args == ""
|
@licenses = Array(args) unless args == ""
|
||||||
puts @licenses
|
puts @licenses
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user