diff options
| author | Xu Cheng | 2015-02-17 17:56:44 +0800 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-17 10:30:32 +0000 |
| commit | f204e2e60879a3ebf335c0a260a4a84c125dde0d (patch) | |
| tree | 50a86c27ee593330a9064ac923a79bbdbc95688d | |
| parent | a4f675a0fb16126e98c8406b4e1f5939fb97bcaa (diff) | |
| download | brew-f204e2e60879a3ebf335c0a260a4a84c125dde0d.tar.bz2 | |
audit: more information on build deps audit
Closes Homebrew/homebrew#36892.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 7 |
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' |
