Skip to content
Snippets Groups Projects
Commit 8ec6245c authored by Mike McQuaid's avatar Mike McQuaid
Browse files

bottle: fixup keg_contains method.

parent 17bfb0f8
No related branches found
No related tags found
No related merge requests found
......@@ -33,20 +33,22 @@ BOTTLE_ERB = <<-EOS
EOS
module Homebrew
def print_filename string, filename
unless @put_string_exists_header
opoo "String '#{string}' still exists in these files:"
@put_string_exists_header = true
end
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:"
@put_string_exists_header = true
end
@put_filenames ||= []
unless @put_filenames.include? filename
puts "#{Tty.red}#{filename}#{Tty.reset}"
@put_filenames << filename
@put_filenames ||= []
unless @put_filenames.include? filename
puts "#{Tty.red}#{filename}#{Tty.reset}"
@put_filenames << filename
end
end
end
def keg_contains string, keg, ignores
result = false
keg.each_unique_file_matching(string) do |file|
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment