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.
This commit is contained in:
Misty De Meo 2017-05-29 15:27:44 -07:00
parent 90c971625e
commit 0c1186f47f
No known key found for this signature in database
GPG Key ID: 76CF846A2F674B2C

View File

@ -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