aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorXu Cheng2015-06-15 16:42:12 +0800
committerXu Cheng2015-06-15 17:35:04 +0800
commit4c6da16221a580fa6297930f9dfd6f150caab1dc (patch)
treeba798e32cb53814658de85af66ca5a4da0bd1b64 /Library/Homebrew
parent74d99d647d30d9d5f00767b211e1473b2db4456a (diff)
downloadbrew-4c6da16221a580fa6297930f9dfd6f150caab1dc.tar.bz2
audit: fix for no compat mode
Closes Homebrew/homebrew#40731. Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/audit.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 83d37051a..10f2ab53f 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -171,15 +171,15 @@ class FormulaAuditor
end
end
- if formula.class < GithubGistFormula
+ if Object.const_defined?("GithubGistFormula") && formula.class < GithubGistFormula
problem "GithubGistFormula is deprecated, use Formula instead"
end
- if formula.class < ScriptFileFormula
+ if Object.const_defined?("ScriptFileFormula") && formula.class < ScriptFileFormula
problem "ScriptFileFormula is deprecated, use Formula instead"
end
- if formula.class < AmazonWebServicesFormula
+ if Object.const_defined?("AmazonWebServicesFormula") && formula.class < AmazonWebServicesFormula
problem "AmazonWebServicesFormula is deprecated, use Formula instead"
end
end