diff options
| author | Jack Nagel | 2011-11-23 13:38:38 -0600 |
|---|---|---|
| committer | Jack Nagel | 2011-11-23 13:38:38 -0600 |
| commit | 470b288f14fdcb3605953499c7b30b514978ff3f (patch) | |
| tree | 1f17363a085946f95b8a8190f5af3cc5169f3cf5 /Library | |
| parent | efe7db8dcc302d39fdcc2297acbd1152468b4507 (diff) | |
| download | homebrew-470b288f14fdcb3605953499c7b30b514978ff3f.tar.bz2 | |
audit: check for MacPorts patches from trunk
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Homebrew/cmd/audit.rb | 5 |
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 |
