diff options
| author | Jack Nagel | 2011-11-23 13:38:38 -0600 |
|---|---|---|
| committer | Jack Nagel | 2011-11-23 13:38:38 -0600 |
| commit | 17d83b735a823408994f5f440b16518412fa4574 (patch) | |
| tree | 80cb5a4855cba122e348bd4379628a3f4b1a5c9f /Library | |
| parent | 399d73e10037885d0970ee1a7fa89ee2cf876bf8 (diff) | |
| download | brew-17d83b735a823408994f5f440b16518412fa4574.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 |
