audit: rename audit_patches to audit_legacy_patches

This commit is contained in:
Xu Cheng 2015-07-22 16:34:08 +08:00
parent 51810ae1ea
commit 2648684b3b

View File

@ -519,7 +519,7 @@ class FormulaAuditor
end end
end end
def audit_patches def audit_legacy_patches
return unless formula.respond_to?(:patches) return unless formula.respond_to?(:patches)
legacy_patches = Patch.normalize_legacy_patches(formula.patches).grep(LegacyPatch) legacy_patches = Patch.normalize_legacy_patches(formula.patches).grep(LegacyPatch)
if legacy_patches.any? if legacy_patches.any?
@ -885,7 +885,7 @@ class FormulaAuditor
audit_deps audit_deps
audit_conflicts audit_conflicts
audit_options audit_options
audit_patches audit_legacy_patches
audit_text audit_text
audit_caveats audit_caveats
text.without_patch.split("\n").each_with_index { |line, lineno| audit_line(line, lineno+1) } text.without_patch.split("\n").each_with_index { |line, lineno| audit_line(line, lineno+1) }