From c5c1f40d0a5f0fa0643b11949365735f16b55e3e Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Fri, 12 Nov 2010 21:10:23 -0800 Subject: [PATCH] Move brew-audit to cmds --- .../examples/brew-audit.rb => Homebrew/cmd/audit.rb} | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) rename Library/{Contributions/examples/brew-audit.rb => Homebrew/cmd/audit.rb} (97%) diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Homebrew/cmd/audit.rb similarity index 97% rename from Library/Contributions/examples/brew-audit.rb rename to Library/Homebrew/cmd/audit.rb index 01ece830d8..4096ebff8e 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