bottle: fixup keg_contains method.

This commit is contained in:
Mike McQuaid 2015-02-26 19:13:10 +00:00
parent 17bfb0f804
commit 8ec6245c18

View File

@ -33,6 +33,9 @@ BOTTLE_ERB = <<-EOS
EOS
module Homebrew
def keg_contains string, keg, ignores
@put_string_exists_header, @put_filenames = nil
def print_filename string, filename
unless @put_string_exists_header
opoo "String '#{string}' still exists in these files:"
@ -46,7 +49,6 @@ module Homebrew
end
end
def keg_contains string, keg, ignores
result = false
keg.each_unique_file_matching(string) do |file|