aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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