aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-11-12 21:30:09 -0600
committerJack Nagel2014-11-12 21:32:44 -0600
commit2e802ddbe7826cdec06c83e849ce7415b5ab1617 (patch)
treeb0098203d7ae6ed047b4be9a977addcf0d4f11ff /Library/Homebrew
parent8b414a290b1404c008b3f2afb77e0cf5961f1b01 (diff)
downloadhomebrew-2e802ddbe7826cdec06c83e849ce7415b5ab1617.tar.bz2
Exempt the head-only tap from the head-only audit warning
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/audit.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index e968bf8af..14ab5855c 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -36,10 +36,6 @@ end
# Formula extensions for auditing
class Formula
- def head_only?
- @head and @stable.nil?
- end
-
def text
@text ||= FormulaText.new(@path)
end
@@ -266,7 +262,9 @@ class FormulaAuditor
end
def audit_specs
- problem "Head-only (no stable download)" if formula.head_only?
+ if head_only?(formula) && formula.tap != "homebrew/homebrew-headonly"
+ problem "Head-only (no stable download)"
+ end
%w[Stable Devel HEAD].each do |name|
next unless spec = formula.send(name.downcase)
@@ -567,6 +565,10 @@ class FormulaAuditor
def problem p
@problems << p
end
+
+ def head_only?(formula)
+ formula.head && formula.stable.nil?
+ end
end
class ResourceAuditor