aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-11-12 21:10:23 -0800
committerAdam Vandenberg2011-03-12 11:55:03 -0800
commitc5c1f40d0a5f0fa0643b11949365735f16b55e3e (patch)
tree348b78bf57d58042c5a3539e939e6241193be423 /Library
parent0225f07ebadad87d3286c65ae705e5c78e34cb20 (diff)
downloadbrew-c5c1f40d0a5f0fa0643b11949365735f16b55e3e.tar.bz2
Move brew-audit to cmds
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/cmd/audit.rb (renamed from Library/Contributions/examples/brew-audit.rb)11
1 files changed, 3 insertions, 8 deletions
diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Homebrew/cmd/audit.rb
index 01ece830d..4096ebff8 100755
--- a/Library/Contributions/examples/brew-audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -139,10 +139,6 @@ end
def audit_formula_urls f
problems = []
- # To do:
- # Grab URLs out of patches as well
- # urls = ((f.patches rescue []) || [])
-
urls = [(f.url rescue nil), (f.head rescue nil)].reject {|p| p.nil?}
# Check SourceForge urls
@@ -209,10 +205,10 @@ def audit_formula_instance f
return problems
end
-def audit_some_formulae
+module Homebrew extend self
+def audit
ff.each do |f|
problems = []
-
problems += audit_formula_instance f
problems += audit_formula_urls f
@@ -239,5 +235,4 @@ def audit_some_formulae
end
end
end
-
-audit_some_formulae
+end