diff options
| author | Misty De Meo | 2017-05-31 08:23:31 -0700 |
|---|---|---|
| committer | GitHub | 2017-05-31 08:23:31 -0700 |
| commit | f9e8d8430154e3480d5255e35b802a46f9168b5a (patch) | |
| tree | 14bf38f815db5fc30c3d1e26dfb0a18d4e536540 /Library/Homebrew | |
| parent | 17650628b36ba52b7e4c56be5721f5bfc126e1bb (diff) | |
| parent | 0c1186f47fd4ee1b9cde6a00125a1835e083478c (diff) | |
| download | brew-f9e8d8430154e3480d5255e35b802a46f9168b5a.tar.bz2 | |
Merge pull request #2697 from mistydemeo/cask_fix_cabextract
cabextract: WARNING lines aren't fatal
Diffstat (limited to 'Library/Homebrew')
| -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 |
