diff options
| author | Xu Cheng | 2015-05-23 19:13:09 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-05-23 19:40:55 +0800 |
| commit | cc0c9cf6199fbea78a960a556f7ed1bb60c14e3c (patch) | |
| tree | b7bf228f4caadd34e1d4d5c1be75c10405f02cf8 /Library | |
| parent | df246cba449fa60f6305fb7fd10cd9c9af63734a (diff) | |
| download | brew-cc0c9cf6199fbea78a960a556f7ed1bb60c14e3c.tar.bz2 | |
audit: don't complain ENV.fortran if `depends_on :fortran`
Fix the audit problem in Homebrew/homebrew#40000.
Closes Homebrew/homebrew#40012.
Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index d84095247..3a6bbbb02 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -597,7 +597,7 @@ class FormulaAuditor problem "Define method #{$1.inspect} in the class body, not at the top-level" end - if line =~ /ENV.fortran/ + if line =~ /ENV.fortran/ && !formula.requirements.map(&:class).include?(FortranDependency) problem "Use `depends_on :fortran` instead of `ENV.fortran`" end |
