diff options
| author | Dominyk Tiller | 2015-05-03 18:52:46 +0100 |
|---|---|---|
| committer | Jack Nagel | 2015-05-04 20:55:22 -0400 |
| commit | 9dc8db12e4a9f342acc5b3611f5231b6c38ba81a (patch) | |
| tree | 3bb3c8af17e7e04ea353d0b47c240d0dfbfa844c /Library/Homebrew/cmd | |
| parent | 241831e263fc87bce3205204e296f11374878872 (diff) | |
| download | brew-9dc8db12e4a9f342acc5b3611f5231b6c38ba81a.tar.bz2 | |
audit: flag incorrect automake/autoconf/libtool dep handling
Just makes the audit cough out this:
```
* :libtool is deprecated. Usage should be "libtool"
* :autoconf is deprecated. Usage should be "autoconf"
* :automake is deprecated. Usage should be "automake"
```
Closes Homebrew/homebrew#39303.
Closes Homebrew/homebrew#39322.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 45502d865..2d61a4c7d 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -588,6 +588,10 @@ class FormulaAuditor problem "\"#{$1}\" should be \"\#{#{$2}}\"" end + if line =~ %r[depends_on :(automake|autoconf|libtool)] + problem ":#{$1} is deprecated. Usage should be \"#{$1}\"" + end + # Commented-out depends_on if line =~ /#\s*depends_on\s+(.+)\s*$/ problem "Commented-out dep #{$1}" |
