From 17d83b735a823408994f5f440b16518412fa4574 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 23 Nov 2011 13:38:38 -0600 Subject: [PATCH] audit: check for MacPorts patches from trunk Signed-off-by: Jack Nagel --- Library/Homebrew/cmd/audit.rb | 5 +++++ 1 file changed, 5 insertions(+) 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