Fix formats command
This commit is contained in:
parent
c08b69d9f3
commit
077275eb32
|
@ -177,11 +177,11 @@ def list_formats ():
|
||||||
for format in ArchiveFormats:
|
for format in ArchiveFormats:
|
||||||
print format, "files:"
|
print format, "files:"
|
||||||
for command in ArchiveCommands:
|
for command in ArchiveCommands:
|
||||||
program = find_archive_program(format, command)
|
try:
|
||||||
if program:
|
program = find_archive_program(format, command)
|
||||||
print " %8s: %s" % (command, program)
|
print " %8s: %s" % (command, program)
|
||||||
else:
|
except util.PatoolError:
|
||||||
print " %8s: NOT SUPPORTED"
|
print " %8s: - (not supported)" % command
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue