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
commit470b288f14fdcb3605953499c7b30b514978ff3f (patch)
tree1f17363a085946f95b8a8190f5af3cc5169f3cf5 /Library
parentefe7db8dcc302d39fdcc2297acbd1152468b4507 (diff)
downloadhomebrew-470b288f14fdcb3605953499c7b30b514978ff3f.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