bottle: fixup keg_contains method.
This commit is contained in:
parent
17bfb0f804
commit
8ec6245c18
@ -33,20 +33,22 @@ BOTTLE_ERB = <<-EOS
|
|||||||
EOS
|
EOS
|
||||||
|
|
||||||
module Homebrew
|
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
|
|
||||||
|
|
||||||
@put_filenames ||= []
|
|
||||||
unless @put_filenames.include? filename
|
|
||||||
puts "#{Tty.red}#{filename}#{Tty.reset}"
|
|
||||||
@put_filenames << filename
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def keg_contains string, keg, ignores
|
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
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
result = false
|
result = false
|
||||||
|
|
||||||
keg.each_unique_file_matching(string) do |file|
|
keg.each_unique_file_matching(string) do |file|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user