diff options
| author | Jack Nagel | 2013-07-23 11:21:37 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-07-23 11:22:16 -0500 |
| commit | 6f5897ae9687faf792a66c5beeaea4c4725ce841 (patch) | |
| tree | 4fa4ea4164a62e54c8326b05451af7ff6ca1d4a8 /Library | |
| parent | a82c997bb96ddb75e2a4260cc1cad44f729579a8 (diff) | |
| download | homebrew-6f5897ae9687faf792a66c5beeaea4c4725ce841.tar.bz2 | |
audit: use !~ instead of "not ... =~"
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 3f3e6f56c..2d03a8ec3 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -257,7 +257,7 @@ class FormulaAuditor end # Use new-style archive downloads - urls.select { |u| u =~ %r[https://.*/(?:tar|zip)ball/] and not u =~ %r[\.git$] }.each do |u| + urls.select { |u| u =~ %r[https://.*/(?:tar|zip)ball/] && u !~ %r[\.git$] }.each do |u| problem "Use /archive/ URLs for GitHub tarballs (url is #{u})." end @@ -335,8 +335,7 @@ class FormulaAuditor end def audit_text - # xcodebuild should specify SYMROOT - if text=~ /system\s+['"]xcodebuild/ and not text =~ /SYMROOT=/ + if text =~ /system\s+['"]xcodebuild/ && text !~ /SYMROOT=/ problem "xcodebuild should be passed an explicit \"SYMROOT\"" end end |
