Remove patch hacks from audit

This commit is contained in:
Jack Nagel 2014-07-29 16:06:07 -05:00
parent a55e196f5f
commit dc2080bd9f

View File

@ -36,13 +36,6 @@ module Homebrew
end
end
class Module
def redefine_const(name, value)
__send__(:remove_const, name) if const_defined?(name)
const_set(name, value)
end
end
# Formula extensions for auditing
class Formula
def head_only?
@ -101,9 +94,6 @@ class FormulaAuditor
@problems = []
@text = f.text.without_patch
@specs = %w{stable devel head}.map { |s| f.send(s) }.compact
# We need to do this in case the formula defines a patch that uses DATA.
f.class.redefine_const :DATA, ""
end
def audit_file