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:
parent
90c971625e
commit
0c1186f47f
@ -6,11 +6,7 @@ module Hbc
|
|||||||
class Container
|
class Container
|
||||||
class Cab < Base
|
class Cab < Base
|
||||||
def self.me?(criteria)
|
def self.me?(criteria)
|
||||||
cabextract = which("cabextract")
|
criteria.magic_number(/^(MSCF|MZ)/n)
|
||||||
|
|
||||||
criteria.magic_number(/^(MSCF|MZ)/n) &&
|
|
||||||
!cabextract.nil? &&
|
|
||||||
criteria.command.run(cabextract, args: ["-t", "--", criteria.path.to_s]).stderr.empty?
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def extract
|
def extract
|
||||||
|
Loading…
x
Reference in New Issue
Block a user