aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-02-03 14:54:18 -0600
committerJack Nagel2013-02-03 14:57:33 -0600
commit3c7837e5a9aa06bd4d20a9dcc1c2cdf61b9e50a6 (patch)
treec11e3700266cf788374a2850475304798c42238d /Library
parent66d91ac0e4b1206da54ff163bdc6235e5e8ca30f (diff)
downloadbrew-3c7837e5a9aa06bd4d20a9dcc1c2cdf61b9e50a6.tar.bz2
audit: check for missing xz build-time dep
Closes Homebrew/homebrew#17565.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 0f00a23fc..723400a72 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -222,6 +222,10 @@ class FormulaAuditor
if urls.any? { |p| p =~ %r[^git://github\.com/] }
problem "Use https:// URLs for accessing GitHub repositories."
end
+
+ if urls.any? { |u| u =~ /\.xz/ } && !f.deps.any? { |d| d.name == "xz" }
+ problem "Missing a build-time dependency on 'xz'"
+ end
end
def audit_specs