Fix formats command

This commit is contained in:
Bastian Kleineidam 2010-02-21 16:04:09 +01:00
parent c08b69d9f3
commit 077275eb32
1 changed files with 4 additions and 4 deletions

View File

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