diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index b18d5e6bfa..87d5b9d5fd 100755 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -125,6 +125,11 @@ def audit_formula_text name, text problems << " * Use 'ARGV.include?' instead of 'ARGV.flag?'" end + # MacPorts patches should specify a revision, not trunk + if text =~ %r[macports/trunk] + problems << " * MacPorts patches should specify a revision instead of trunk" + end + return problems end