diff options
| author | Mike McQuaid | 2017-04-17 15:50:21 +0100 |
|---|---|---|
| committer | GitHub | 2017-04-17 15:50:21 +0100 |
| commit | 417f49dd32bfe555b20f3f7d88e2739f6623991b (patch) | |
| tree | 9cd3601f500a36f2cb8e63a0688956f0f49681c1 /Library/Homebrew/dev-cmd | |
| parent | d90398692cf6a673852588223bb1aa0ed8bc8a17 (diff) | |
| parent | 2c370f36776599a077abb71f40f58c1b7523052a (diff) | |
| download | brew-417f49dd32bfe555b20f3f7d88e2739f6623991b.tar.bz2 | |
Merge pull request #2477 from MikeMcQuaid/audit-more-universal
audit: check for more universal usage.
Diffstat (limited to 'Library/Homebrew/dev-cmd')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 79b6060bd..32ae5362c 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -1053,6 +1053,14 @@ class FormulaAuditor problem "Use ENV instead of invoking '#{$1}' to modify the environment" end + if formula.name != "wine" && line =~ /ENV\.universal_binary/ + problem "macOS has been 64-bit only since 10.6 so ENV.universal_binary is deprecated." + end + + if line =~ /build\.universal\?/ + problem "macOS has been 64-bit only so build.universal? is deprecated." + end + if line =~ /version == ['"]HEAD['"]/ problem "Use 'build.head?' instead of inspecting 'version'" end |
