diff options
Diffstat (limited to 'Library/Homebrew/cmd/tap.rb')
| -rw-r--r-- | Library/Homebrew/cmd/tap.rb | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/tap.rb b/Library/Homebrew/cmd/tap.rb index 149bf52e0..fad200ce2 100644 --- a/Library/Homebrew/cmd/tap.rb +++ b/Library/Homebrew/cmd/tap.rb @@ -39,7 +39,7 @@ module Homebrew      true    end -  def link_tap_formula paths +  def link_tap_formula(paths, warn_about_conflicts=true)      ignores = (HOMEBREW_LIBRARY/"Formula/.gitignore").read.split rescue []      tapped = 0 @@ -53,7 +53,7 @@ module Homebrew          to.make_relative_symlink(path)        rescue SystemCallError          to = to.resolved_path if to.symlink? -        opoo <<-EOS.undent +        opoo <<-EOS.undent if warn_about_conflicts            Could not create link for #{Tty.white}#{tap_ref(path)}#{Tty.reset}, as it            conflicts with #{Tty.white}#{tap_ref(to)}#{Tty.reset}. You will need to use the            fully-qualified name when referring this formula, e.g. @@ -70,7 +70,7 @@ module Homebrew      tapped    end -  def repair_taps +  def repair_taps(warn_about_conflicts=true)      count = 0      # prune dead symlinks in Formula      Dir.glob("#{HOMEBREW_LIBRARY}/Formula/*.rb") do |fn| @@ -88,7 +88,7 @@ module Homebrew      each_tap do |user, repo|        files = []        repo.find_formula { |file| files << file } -      count += link_tap_formula(files) +      count += link_tap_formula(files, warn_about_conflicts)      end      puts "Tapped #{count} formula#{plural(count, 'e')}"  | 
