aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorXu Cheng2015-02-17 17:56:44 +0800
committerMike McQuaid2015-02-17 10:30:32 +0000
commit7fb42a2d00eaffadf99ec13d2618ecd85bf59095 (patch)
treefc232b3c886517064fd1935ebe58da4fae8ae8b0 /Library/Homebrew/cmd
parent3edf744c14a8dc341066ec8c327c64f8791d9124 (diff)
downloadhomebrew-7fb42a2d00eaffadf99ec13d2618ecd85bf59095.tar.bz2
audit: more information on build deps audit
Closes #36892. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/audit.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 4d0d7cb2f..2c2b6e34b 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'