diff options
| author | Misty De Meo | 2017-05-29 15:27:44 -0700 |
|---|---|---|
| committer | Misty De Meo | 2017-05-30 18:55:49 -0700 |
| commit | 0c1186f47fd4ee1b9cde6a00125a1835e083478c (patch) | |
| tree | 3f1704d21165d678ec7a44ea71b414a9a2a2bcb9 | |
| parent | 90c971625e6560cf6a5633cd269cc7286028f021 (diff) | |
| download | brew-0c1186f47fd4ee1b9cde6a00125a1835e083478c.tar.bz2 | |
cabextract: remove -t test
The warnings this prints makes it not especially helpful, so
just assume the magic number test and job failure are enough.
Fixes #2689.
| -rw-r--r-- | Library/Homebrew/cask/lib/hbc/container/cab.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/container/cab.rb b/Library/Homebrew/cask/lib/hbc/container/cab.rb index b3cf01452..010fccbc4 100644 --- a/Library/Homebrew/cask/lib/hbc/container/cab.rb +++ b/Library/Homebrew/cask/lib/hbc/container/cab.rb @@ -6,11 +6,7 @@ module Hbc class Container class Cab < Base def self.me?(criteria) - cabextract = which("cabextract") - - criteria.magic_number(/^(MSCF|MZ)/n) && - !cabextract.nil? && - criteria.command.run(cabextract, args: ["-t", "--", criteria.path.to_s]).stderr.empty? + criteria.magic_number(/^(MSCF|MZ)/n) end def extract |
