Fix codec detection.

This commit is contained in:
Bastian Kleineidam 2012-05-23 05:19:14 +02:00
parent 1c0c3d9b61
commit 3f22dae399
1 changed files with 3 additions and 1 deletions

View File

@ -178,4 +178,6 @@ def has_codec (program, codec):
"""Test if program supports given codec."""
if program == '7z' and codec == 'rar':
return patoolib.util.p7zip_supports_rar()
return patoolib.program_supports_compression(program, codec)
if patoolib.program_supports_compression(program, codec):
return True
return patoolib.util.find_program(codec)