diff options
| author | Adam Vandenberg | 2010-11-12 21:10:23 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-12 11:55:03 -0800 |
| commit | faaa1ad4b1c4e069dd6e6809391b999b9bfef586 (patch) | |
| tree | 6eb7143c925f4216da63456090205f627dfd89b7 | |
| parent | 3eb2241464c0cb45125d588baea4279c36bf2ee5 (diff) | |
| download | homebrew-faaa1ad4b1c4e069dd6e6809391b999b9bfef586.tar.bz2 | |
Move brew-audit to cmds
| -rwxr-xr-x | Library/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 |
