diff options
| author | Jack Nagel | 2013-02-01 14:27:34 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-02-01 14:27:34 -0600 |
| commit | de5b7c0fe715323c4427efcb5db3ea62bbca4d22 (patch) | |
| tree | 31fe4c7616dc72b0dd08268c6eb827aadb43b70d /Library | |
| parent | 773812e86c904496396a5208c731610ccba6d1fe (diff) | |
| download | homebrew-de5b7c0fe715323c4427efcb5db3ea62bbca4d22.tar.bz2 | |
audit: wrap patches in ENV.with_build_environment block
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index d0300d5d6..6e6837c8f 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -260,16 +260,16 @@ class FormulaAuditor def audit_patches # Some formulae use ENV in patches, so set up an environment - ENV.setup_build_environment - - Patches.new(f.patches).select { |p| p.external? }.each do |p| - case p.url - when %r[raw\.github\.com], %r[gist\.github\.com/raw] - unless p.url =~ /[a-fA-F0-9]{40}/ - problem "GitHub/Gist patches should specify a revision:\n#{p.url}" + ENV.with_build_environment do + Patches.new(f.patches).select { |p| p.external? }.each do |p| + case p.url + when %r[raw\.github\.com], %r[gist\.github\.com/raw] + unless p.url =~ /[a-fA-F0-9]{40}/ + problem "GitHub/Gist patches should specify a revision:\n#{p.url}" + end + when %r[macports/trunk] + problem "MacPorts patches should specify a revision instead of trunk:\n#{p.url}" end - when %r[macports/trunk] - problem "MacPorts patches should specify a revision instead of trunk:\n#{p.url}" end end end |
