aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2015-06-23 19:58:05 -0400
committerJack Nagel2015-06-23 19:58:37 -0400
commit22269b700765e7e8f1b4fc4f7884802944d5ba62 (patch)
tree08a2702912f1dcaf01de980aebaf1a9501077c17 /Library
parenta639601f143422eab3ef0f05a870813852f66788 (diff)
downloadbrew-22269b700765e7e8f1b4fc4f7884802944d5ba62.tar.bz2
Fix audit when tap is nil
This is the case when a formula is passed as a filename.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index a583f3bbf..4851c0744 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -420,11 +420,11 @@ class FormulaAuditor
end
def audit_specs
- if head_only?(formula) && formula.tap.downcase != "homebrew/homebrew-head-only"
+ if head_only?(formula) && formula.tap.to_s.downcase != "homebrew/homebrew-head-only"
problem "Head-only (no stable download)"
end
- if devel_only?(formula) && formula.tap.downcase != "homebrew/homebrew-devel-only"
+ if devel_only?(formula) && formula.tap.to_s.downcase != "homebrew/homebrew-devel-only"
problem "Devel-only (no stable download)"
end