diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 4d0d7cb2f7..2c2b6e34b5 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -168,7 +168,12 @@ class FormulaAuditor case dep.name when *BUILD_TIME_DEPS next if dep.build? or dep.run? - problem %{#{dep} dependency should be "depends_on '#{dep}' => :build"} + problem <<-EOS.undent + #{dep} dependency should be + depends_on "#{dep}" => :build + Or if it is indeed a runtime denpendency + depends_on "#{dep}" => :run + EOS when "git", "ruby", "mercurial" problem "Don't use #{dep} as a dependency. We allow non-Homebrew #{dep} installations." when 'gfortran'