aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2011-11-23 13:38:38 -0600
committerJack Nagel2011-11-23 13:38:38 -0600
commit17d83b735a823408994f5f440b16518412fa4574 (patch)
tree80cb5a4855cba122e348bd4379628a3f4b1a5c9f /Library
parent399d73e10037885d0970ee1a7fa89ee2cf876bf8 (diff)
downloadbrew-17d83b735a823408994f5f440b16518412fa4574.tar.bz2
audit: check for MacPorts patches from trunk
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Homebrew/cmd/audit.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index b18d5e6bf..87d5b9d5f 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